if ( ! function_exists( ‘rd_swap_products_on_subscription’ ) ) { function rd_swap_products_on_subscription( $workflow ) { // Map old SKU => new SKU (snippet only scoped to work with simple products – untested with variable or bundled products) $sku_mapping = array( ‘9359769001959’ =>…Continue reading
// Funzione per calcolare i moduli (Logic Core) function calcola_moduli_cucina($cm) { if ($cm < 15) return "Fascia tamponamento {$cm}cm"; $moduli_disponibili = [120, 90, 60, 45, 30, 15]; $composizione = []; $rimanente = $cm; foreach ($moduli_disponibili as $modulo) { while ($rimanente…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 v2.2 – Complete Schema Audit with Global Detection * * Elite-level schema auditing for WordPress. * Now includes global/site-wide schemas and source identification. * * v2.2 Changes: * – Added global schema detection from RankMath…Continue reading