/** * LexiPress: Dynamic Header Navigation Authentication Gating * Swaps “Account” to “Sign In” for guests and strips sub-menu items when logged out. */ if ( ! defined( ‘ABSPATH’ ) ) { exit; } add_filter( ‘wp_nav_menu_objects’, ‘lexipress_dynamic_account_menu_gate’, 10, 2 );…Continue reading
/** * LexiPress: Dequeue Select2 on Shop Ordering Dropdown * Prevents JavaScript positioning glitches and body popups. */ if ( ! defined( ‘ABSPATH’ ) ) { exit; } add_action( ‘wp_footer’, ‘lexipress_kill_select2_shop_ordering’, 999 ); function lexipress_kill_select2_shop_ordering() { if ( is_shop() ||…Continue reading
/** * LexiPress: Disable Server-Side Address Requirements for Checkout Blocks */ if ( ! defined( ‘ABSPATH’ ) ) { exit; } // 1. Unmark fields as required in default address schema add_filter( ‘woocommerce_default_address_fields’, ‘lexipress_remove_address_field_requirements’, 9999 ); function lexipress_remove_address_field_requirements( $fields )…Continue reading
/** * LexiPress: WooCommerce Store API Legal & 18+ Audit Logging Engine * * 1. Validates 18+ & TOS/Waiver checkboxes on WooCommerce Blocks Checkout. * 2. Permanently writes IP, UTC Timestamp, and User Agent to Order Meta. * 3. Appends…Continue reading
/** * LexiPress: WooCommerce Premium Decimal Superscript Engine * Intercepts server-side price strings and wraps decimals for CSS targeting. */ if ( ! defined( ‘ABSPATH’ ) ) { exit; } add_filter( ‘formatted_woocommerce_price’, ‘lexipress_format_price_decimals’, 10, 5 ); function lexipress_format_price_decimals( $formatted_price, $price,…Continue reading
/** * Dodaje pole akceptacji regulaminu nad przyciskiem płatności */ add_action( ‘woocommerce_review_order_before_submit’, ‘dodaj_checkbox_regulaminu_nad_przyciskiem’, 10 ); function dodaj_checkbox_regulaminu_nad_przyciskiem() { woocommerce_form_field( ‘akceptacja_regulaminu’, array( ‘type’ => ‘checkbox’, ‘class’ => array(‘form-row-wide’, ‘terms-checkbox’), ‘label_class’ => array(‘woocommerce-form__label’, ‘woocommerce-form__label-for-checkbox’, ‘checkbox’), ‘input_class’ => array(‘woocommerce-form__input’, ‘woocommerce-form__input-checkbox’, ‘input-checkbox’), ‘required’ =>…Continue reading
/** * Productdetails (V=3.5) uit ACF tonen via [dv_productdetails]. * Geschikt voor WooCommerce-productpagina’s en Elementor. */ if ( ! function_exists( ‘dv_productdetails_row’ ) ) { function dv_productdetails_row( $icon, $label, $field, $product_id ) { if ( ! function_exists( ‘get_field’ ) ) {…Continue reading
/** * ACF is_kleding V=1.0– duidelijkere Nee-schakelaar. * Alleen opmaak in het WordPress-beheer. */ add_action( ‘acf/input/admin_head’, function() { ?>Continue reading