Use CSS tag inside PHP code

I’m not sure if you can add styles in filters. I tested the below code in wp_head action and worked perfectly: function show_outlet_msg(){ $term = get_term( 40, ‘product_cat’ ); $total_products=$term->count; if ($total_products>0){ $html=”<style> #txt_outlet_zero{ display: none; } </style>”; } else { $html=”<style> #txt_outlet_head{ display: none; } </style>”; } echo $html; } add_action(‘wp_head’,’show_outlet_msg’);

WPForms Custom Redirect not working

I’m not sure why wpforms_process_redirect_url doesn’t work. I used this instead. Here’s my full code: //Capture the wpform submit, and call the “processForm” function add_action( ‘wpforms_process_complete’, ‘processForm’, 5, 4 ); function processForm( $form_fields, $entry, $form_data, $entry_id ) { $card_arr = array(797, 1104, 1103, 1102, 1101, 1038, 997, 996, 973, 812); $form_id = $form_data[‘id’]; $variation_id = … Read more