Category: Admin
Home
/** * Native Innovation — Homepage via shortcode * Usage: Add as a WPCode PHP Snippet (Frontend), then place [native_homepage] on your Home page. */ if (!function_exists(‘ni_enqueue_home_styles’)) { function ni_enqueue_home_styles() { // Base CSS for the homepage sections (scoped by…Continue reading
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
Custom Separator for Data Manipulation
#== Custom Separator for Data Manipulation || PFE ==# function data_manipulation_separator() { return ‘ — ‘; } add_filter( ‘adt_field_manipulation_separator’, ‘data_manipulation_separator’ );Continue reading
[DO NOT PUSH] Extend Formidable Forms PDF Public Link Expiry
add_filter(‘frm_pdfs_access_code_max_days’, ‘filter_access_code_max_days’); function filter_access_code_max_days() { return 7; // Replace 7 with the number of days. }Continue reading
Redirect Lost Password to a Custom Page
add_action(‘login_form_lostpassword’, function() { if (isset($_GET[‘action’]) && $_GET[‘action’] === ‘lostpassword’) { wp_redirect(‘https://your-custom-url.com/’); exit; } });Continue reading
Untitled Snippet
sasdasdContinue reading
Untitled Snippet
MARKOooContinue 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