Add Class to Formidable Forms reCAPTCHA Fields

add_filter( ‘frm_field_div_classes’, function( $classes, $field ) { if ( ! isset( $field[‘type’] ) || ‘captcha’ !== $field[‘type’] ) { return $classes; } $settings = FrmAppHelper::get_settings(); $active_captcha = isset( $settings->active_captcha ) ? $settings->active_captcha : ‘recaptcha’; if ( ‘recaptcha’ === $active_captcha &&…Continue reading

[DEBUG] Show Enqueued Script Handles

function rd_get_script_handles_queue() { global $wp_scripts; if ( empty($wp_scripts) || ! isset($wp_scripts->queue) ) { return array(); } $handles = (array) $wp_scripts->queue; // De-dupe while preserving order $seen = array(); $deduped = array(); foreach ( $handles as $h ) { if (…Continue reading

PHP – Custom login

// === CUSTOM LOGIN PAGE === add_action(‘login_enqueue_scripts’, function () { echo ‘ ‘; }); // === LIEN DU LOGO DE CONNEXION === add_filter(‘login_headerurl’, fn() => ‘https://www.mdf.nc’); add_filter(‘login_headertext’, fn() => ‘MDF NC’);Continue reading