add_filter( ‘noptin_can_show_form’, function( $can_show, $form ) {
// Replace 10 with the actual form ID.
if ( 10 == $this->id ) {
return true;
}
return $can_show;
}, 10, 2 );
Thank you. Doesn’t work.. have you tested it?
add_filter( ‘noptin_can_show_form’, function( $can_show, $form ) {
// Replace 10 with the actual form ID.
if ( 2245974 == $this->id ) {
return false;
}
return $can_show;
},10,2 );
add_filter( ‘noptin_can_show_form’, function( $can_show, $form ) {
// Replace 10 with the actual form ID.
if ( 2245974 == $this->id ) {
return true;
}
return $can_show;
},10,2 );
It doesn’t work.
Sorry, I wrote this code at night and missed changing $this with $form. Use the below code instead.
add_filter( 'noptin_can_show_form', function( $can_show, $form ) {
// Replace 10 with the actual form ID.
if ( 10 == $form->id ) {
return true;
}
return $can_show;
}, 10, 2 );
Thanks, I understand how foggy the mind is at night. Support is excellent, I am considering opting for premium add-ons.
That’s good to hear. Did the above snippet work for you or is there something I missed?