/** * Log 404 requests for pages/posts/assets, excluding admin or login areas. */ function log_public_404_requests() { // Only proceed if this is a 404 page on the front end if ( is_404() && ! is_admin() ) { $request_uri = $_SERVER[‘REQUEST_URI’]…Continue reading
Redux::disable_demo();Continue reading
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
// Backfill missing featured images for Events // Runs only in Admin when dashboard loads add_action(‘admin_init’, function() { if ( ! current_user_can(‘manage_options’) ) { return; } $args = [ ‘post_type’ => ‘tribe_events’, ‘post_status’ => ‘publish’, ‘posts_per_page’ => 20, // small…Continue reading
// Disable auto-update emails. add_filter( ‘auto_core_update_send_email’, ‘__return_false’ ); // Disable auto-update emails for plugins. add_filter( ‘auto_plugin_update_send_email’, ‘__return_false’ ); // Disable auto-update emails for themes. add_filter( ‘auto_theme_update_send_email’, ‘__return_false’ );Continue reading
add_action(‘login_form_lostpassword’, function() { if (isset($_GET[‘action’]) && $_GET[‘action’] === ‘lostpassword’) { wp_redirect(‘https://your-custom-url.com/’); exit; } });Continue reading
// === 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
function custom_admin_style() { echo ‘ ‘; } add_action(‘admin_head’, ‘custom_admin_style’);Continue reading