remove bps form on condition
-
hi, can you help me? I want to remove shortcode by user type for example
I have created 2 filter form and both display on member directory, but i want to dsiplay on condition for example
add_action( ‘init’, ‘remove_my_shortcode’);
function remove_my_shortcode() {
if($user_id == 1){
remove_shortcode(‘[bps_form id=89587]’);
}else {
remove_shortcode(‘[bps_form id=65465]’);
}
}i want to display only 1 based on condition, and not display them all.. can you help please i tried remove_shortcode but not work…
thanks.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘remove bps form on condition’ is closed to new replies.