[No longer required?] Fix Missing Stripe Credit Card Fields Padding

function deletetransientsfromwc() { delete_transient( ‘wc_stripe_appearance’ ); delete_transient( ‘wc_stripe_blocks_appearance’ ); } add_action( ‘template_redirect’, ‘deletetransientsfromwc’ ); add_filter( ‘wc_stripe_upe_params’, function ( $stripe_params ) { $stripe_params[‘appearance’] = (object) [ ‘rules’ => (object) [ ‘.Input’ => (object) [ ‘padding’ => ’10px’, ] ], ]; return…Continue reading

Elementor LCP Image Preloader (copy)

/** * Elementor LCP Background Image Preloader v2.1 * * Extracts the EXACT URL from Elementor’s _elementor_data JSON * This ensures the preloaded URL matches what Elementor’s CSS requests * * WPCODE SETUP: * – Code Type: PHP Snippet *…Continue reading

Elementor LCP Image Preloader (copy)

/** * Elementor LCP Background Image Preloader v2.1 * * Extracts the EXACT URL from Elementor’s _elementor_data JSON * This ensures the preloaded URL matches what Elementor’s CSS requests * * WPCODE SETUP: * – Code Type: PHP Snippet *…Continue reading

FC – Ayuda con debug

add_action(‘doing_it_wrong_run’, function($function, $message, $version) { if ($function !== ‘_load_textdomain_just_in_time’) return; if (strpos($message, ‘dominio acf‘) === false && strpos($message, ‘domain acf‘) === false) return; $bt = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS); // Recorta un poco para que sea legible $lines = []; foreach (array_slice($bt, 0,…Continue reading

Rimozione tab review/recensioni da PDP

// 1) Rimuove completamente l’area tabs add_action(‘wp’, function () { remove_action( ‘woocommerce_after_single_product_summary’, ‘woocommerce_output_product_data_tabs’, 10 ); }); // 2) Stampa la descrizione lunga al posto dei tabs add_action( ‘woocommerce_after_single_product_summary’, function () { global $post; if ( ! empty( $post->post_content ) )…Continue reading