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

Yoast Fix Multisite

/** * Network-wide Yoast Schema fixes for domain-mapped multisite: * – Force posts to output NewsArticle schema type * – Ensure publisher / organization / copyrightHolder references * use each subsite’s mapped domain (home_url), not the origin domain. * *…Continue reading