[DO NOT PUSH] AutomateWoo Function to Swap Subscription Product by SKU

if ( ! function_exists( ‘rd_swap_products_on_subscription’ ) ) { function rd_swap_products_on_subscription( $workflow ) { // Map old SKU => new SKU (simple products only; untested with variable/bundled) $sku_mapping = array( ‘9359769001492’ => ‘9359769002352’, // Nando’s Chicken Bowl ‘9359769002277’ => ‘9359769002369’, //…Continue reading

Cortex E-commerce Products SEO Meta

/** * Cortex E-commerce Products SEO Meta API v1.0 * REST Endpoints for WooCommerce Product & Product Category SEO Data * * For meta titles, descriptions, excerpts (short descriptions), focus keywords, * and social meta on WooCommerce products and product…Continue reading

Untitled Snippet

function remove_my_action() { remove_action(‘wp_head’, ‘et_add_viewport_meta’); } function custom_et_add_viewport_meta(){ echo ‘‘; } add_action( ‘init’, ‘remove_my_action’); add_action( ‘wp_head’, ‘custom_et_add_viewport_meta’ );Continue reading

Auto-link Site Name – Home Page

/** * Auto-link Site Name – Global Version * Pulls company name from Settings > General > Site Title * Pulls link title from Settings > General > Tagline */ function site_name_auto_links($content) { // Fire on all singular post types…Continue reading

Cortex Schema API

/** * Cortex Schema API v3.1 – Streamlined Schema Audit with Server-Side Filtering * * Focused schema auditing for WordPress pages. * Returns COMPLETE live-rendered schemas (local + global + auto-generated). * * v3.1 Changes: * – Added server-side filtering…Continue reading

Cortex Image Meta API

/** * Cortex Image Meta API – REST Endpoints for WordPress Image Optimization * v1.0 – Separated from Cortex SEO Meta API * * For image alt text, titles, captions, and optimization scoring. * Works with RankMath focus keywords for…Continue reading