Type: php
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
Charitable Email Preview Test – PHP 8.4
Charitable Email Preview Test – PHP 8.2
nihao
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
Homepage – Insert SmartSlider shortcode – no loading on mobile – PROD Library
echo do_shortcode(‘[smartslider3 slider=”home”]’);Continue reading