Archives: Snippets
CSS de base
p, h1, h2, h3, h4, h5, h6 { margin-block-start: 0!important; margin-block-end: 0; } ul { margin: 0; padding: 0 0 15px 15px; } .elementor-widget-text-editor a, .elementor-widget-theme-post-content a{ color: inherit; text-decoration: underline; }Continue reading
Lindy Chat Bot
MGID Body_in-article Widget
MGID Head_in-article Widget
MGID Body_Smart Widget
MGID Head_Smart Widget
Can You Add More Product Types To The Product Search Boxes?
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
How to Restrict Coupons to a Certain User?
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
How to Apply Coupon Coupon Based On Cart Item Meta
// 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