Action Scheduler Log Retention

add_filter( ‘action_scheduler_default_cleaner_statuses’, function ( $statuses ) { $statuses[] = ‘failed’; return $statuses; } ); add_filter( ‘action_scheduler_retention_period’, ‘custom_action_scheduler_retention’ ); /** * Change Action Scheduler default purge to 1 day */ function custom_action_scheduler_retention() { return DAY_IN_SECONDS; // DAY_IN_SECONDS is a built-in WordPress…Continue reading

Geo Search Snippet 1 – Mobile

if ( ! function_exists( ‘rw_geo_search_after_header_1280_mobile’ ) ) { add_action( ‘kadence_after_header’, ‘rw_geo_search_after_header_1280_mobile’ ); function rw_geo_search_after_header_1280_mobile() { if ( is_admin() ) { return; } echo ‘ ‘; echo ‘ ‘; echo do_shortcode( ‘[geo_search_mobile]’ ); echo ‘ ‘; echo ‘ ‘; } }Continue reading

Cortex Pages & Posts Meta API (copy)

/** * Cortex Pages & Posts SEO Meta API – REST Endpoints for RankMath SEO Data * v2.2 – Added audit-list endpoint for lightweight content inventory * * For meta titles, descriptions, excerpts, focus keywords, and categories. * Works with…Continue reading

Disable Update Notifications

// Disable plugin update emails add_filter( ‘auto_plugin_update_send_email’, ‘__return_false’ ); // Disable theme update emails add_filter( ‘auto_theme_update_send_email’, ‘__return_false’ ); // Disable core update emails add_filter( ‘auto_core_update_send_email’, ‘__return_false’ );Continue reading

WP All Import Functions

// Only load these helpers when WP All Import is running (admin/cron/cli), // or when explicitly requested via a filter. // Note: WordPress functions must be loaded before this file is included if ( function_exists(‘wp_doing_cron’) && function_exists(‘is_admin’) ) { if…Continue reading

Charitable Email Preview Debug Tool

/** * Charitable Email Preview Debug Tool (WPCode-ready) * * WPCODE INSTRUCTIONS: * 1. Install WPCode plugin (Insert Headers and Footers) * 2. Code Snippets → + Add Snippet → “Add Your Custom Code (New Snippet)” * 3. Title: “Charitable…Continue reading