Hide link
-
Hello, I created code but doesnt works
I want if condition business_yes is Oui, display link none
Thanks for you help
here the code
add_action('wp_head',function(){ if( um_is_core_page( 'activity') ){ $profile_id = um_profile_id(); $business_yes = get_user_meta( $profile_id, 'business_yes', true ); if( $business_yes == 'Oui'){ // ?> <style> .link-element-class { display:none; } </style> <?php } } });
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Hide link’ is closed to new replies.