/** * Multisite Snippet Debug Badge (Front-end + Admin) * – Shows a visible badge proving the snippet is executing on that site * – Includes blog/site IDs + domain for quick verification * * Add as a WPCode snippet.…Continue reading
// Désactiver la recherche WordPress add_action(‘parse_query’, function($query) { if ($query->is_search && !is_admin()) { wp_redirect(home_url()); exit; } }); // // Project form – First field dynamic (ID = 100) add_filter( ‘gform_pre_render’, ‘byus_populate_aap_select_field’ ); add_filter( ‘gform_pre_validation’, ‘byus_populate_aap_select_field’ ); add_filter( ‘gform_pre_submission_filter’, ‘byus_populate_aap_select_field’ );…Continue reading
add_filter(‘acfwp_allowed_customers_error_message’,’Change_Text’); function Change_Text(){ return __( ‘Hey! You did not meet the requirements, reach out to us!.’); }Continue reading
add_filter( ‘acfw_product_search_allowed_types’ , ‘support_booking_product_type_in_search’ ); function support_booking_product_type_in_search( $allowed_types ) { $allowed_types[] = ‘booking’; $allowed_types[] = ‘bundle’; $allowed_types[] = ‘composite’; return $allowed_types; }Continue reading
[agcfw_gift_card_redeem_form]Continue reading
Total Customer SpendContinue reading
Total Customer Spend On A Certain CategoryContinue reading
// define the woocommerce_after_cart callback function action_woocommerce_after_cart() { error_log(print_r(WC()->cart->get_cart_contents(), true)); }; // add the action add_action( ‘woocommerce_after_cart’, ‘action_woocommerce_after_cart’, 10, 1 );Continue reading
[lpfw_single_products_points_earned_message]Continue reading
[lpfw_points_earned_message]Continue reading