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. if ( !defined(‘WP_CLI’) && !wp_doing_cron() ) { // If we’re not in admin, no need. if ( !is_admin() ) {…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

Yoast Post Meta Fix

/** * Fallback meta description ONLY when Yoast meta description is empty. * Works with Yoast Premium + WPCode. */ add_filter(‘wpseo_metadesc’, function ($metadesc) { // Only on single blog posts if (!is_singular(‘post’)) { return $metadesc; } // If Yoast already…Continue reading

Yoast Post Meta Fix

/** * Add a meta description for posts if Yoast doesn’t output one. * Network-safe for multisite. Only runs on singular posts and only * if no description is already set by Yoast or another plugin. */ add_action(‘wp_head’, function ()…Continue reading