// 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
if ( ! function_exists( ‘WC’ ) ) { return; } function rd_wrap_header_image_with_link( $message ) { if ( ! is_string( $message ) ) { return $message; } $home = home_url( ‘/’ ); // Support both normal HTML and quoted-printable HTML. $markers…Continue reading
5CX9RLRZI0VP0MTK0Continue reading
/** * Hero Section – Portfolio Homepage * Shortcode: [lihay_hero] */ function lihay_hero_section() { ob_start(); ?> ✨ מוח יצירתי בעבודה אני עושה מותגים בלתי אפשרי להתעלם. אסטרטגיה. תוכן. מערכות. אוטומציה. הכל מחובר. הכל כוונה. התחל פרויקט → ראה את העבודות…Continue reading
function custom_enqueue_scripts() { wp_add_inline_script( ‘jquery’, // Cargar después de jQuery ” document.addEventListener(‘DOMContentLoaded’, function () { const toggleIcon = document.getElementById(‘show-search-icon’); const searchForm = document.getElementById(‘search-form-container’); if (toggleIcon && searchForm) { toggleIcon.addEventListener(‘click’, function () { if (searchForm.style.display === ‘none’ || searchForm.style.display === ”)…Continue reading
add_action(‘woocommerce_checkout_update_order_meta’, ‘set_real_customer_ip’, 10, 2); function set_real_customer_ip($order_id, $data) { // Check if Cloudflare provides the real IP address in the HTTP_CF_CONNECTING_IP header if (isset($_SERVER[‘HTTP_CF_CONNECTING_IP’])) { $real_ip = sanitize_text_field($_SERVER[‘HTTP_CF_CONNECTING_IP’]); } elseif (isset($_SERVER[‘HTTP_X_FORWARDED_FOR’])) { // Fallback to another common proxy header $real_ip =…Continue reading
//Remove jQuery migrate function smartwp_remove_jquery_migrate( $scripts ) { if ( !is_admin() && !empty( $scripts->registered[‘jquery’] ) ) { $scripts->registered[‘jquery’]->deps = array_diff( $scripts->registered[‘jquery’]->deps, [‘jquery-migrate’] ); } } add_action(‘wp_default_scripts’, ‘smartwp_remove_jquery_migrate’);Continue reading
// Create and display the custom field in product general setting tab add_action( ‘woocommerce_product_options_general_product_data’, ‘add_custom_field_general_product_fields’ ); function add_custom_field_general_product_fields(){ global $post; echo ‘ ‘; // Custom Product Checkbox Field woocommerce_wp_checkbox( array( ‘id’ => ‘_disabled_for_coupons’, ‘label’ => __(‘Disabled for coupons’, ‘woocommerce’), ‘description’…Continue reading
add_filter(‘woo_wallet_is_enable_top_up’, ‘__return_false’);Continue reading
/** * This will turn on deferred transactional emails in WooCommerce. This may help if you * are experiencing slow checkouts or checkout timeouts. */ add_filter( ‘woocommerce_defer_transactional_emails’, ‘__return_true’ );Continue reading