Add Class to Formidable Forms reCAPTCHA Fields

add_filter(‘frm_field_div_classes’, function( $classes, $field ){ // For all Captcha fields (includes reCAPTCHA v2/v3) if ( isset( $field[‘type’] ) && $field[‘type’] === ‘captcha’ ) { $classes .= ‘ captcha-no-margin’; } return $classes; }, 10, 2);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