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 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
add_filter( ‘login_head’, function () { // Update the line below with the URL to your own logo. // Adjust the Width & Height accordingly. $custom_logo = ‘https://www.xgimi.it/wp-content/uploads/2024/11/xgimi-ico.png’; $logo_width = 84; $logo_height = 84; printf( ‘ ‘, $custom_logo, $logo_width, $logo_height );…Continue reading
add_filter( ‘login_head’, function () { // Update the line below with the URL to your own logo. // Adjust the Width & Height accordingly. $custom_logo = ‘https://wpcode.com/wp-admin/images/wordpress-logo.svg’; $logo_width = 84; $logo_height = 84; printf( ‘ ‘, $custom_logo, $logo_width, $logo_height );…Continue reading
add_filter( ‘xmlrpc_enabled’, ‘__return_false’ );Continue reading
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 – 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 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 – 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