Dölj admin-baren för prenumeranter

/** * 2) Dölj admin-baren för prenumeranter */ add_filter( ‘show_admin_bar’, function( $show ) { if ( is_user_logged_in() ) { $user = wp_get_current_user(); if ( in_array( ‘subscriber’, (array) $user->roles, true ) ) { return false; } } return $show; });Continue reading

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

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