Link hided
-
Hello, this code works well and where add code else ( like if no filled ) inside it ?
That I need is code for display link is filled and hide link if not filled
The code below hide link is filled, howadd_action('wp_head',function(){ if( um_is_core_page( 'user' ) ){ $profile_id = um_profile_id(); $business_name = get_user_meta( $profile_id, 'business_name', true ); if( $business_name){ // first name was filled ?> <style> .link-element-class { display:none; } </style> <?php } } });
Explain better , I have 3 links :
My profil >> want to be hide if field name is not filled
Edit my profil >> want to be display if field name is filled
Register profil >> want to be hide if field name not filledThanks
Michel
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Link hided’ is closed to new replies.