Function to hide widget
-
Hi,
Does a hook exist to hide the widget? (i know that there is this one to hide it if it’s empty: add_filter( ‘black_studio_tinymce_hide_empty’, ‘__return_true’ );).I want one that just hides, I would then add an IF statement to hide it on a condition.
I have shortcodes in my widget to display custom fields, and sometimes the custom fields are empty, so I don’t want it to display if they are empty. The widget itself isn’t empty though because it has the shortcodes so the existing hook above doesn’t work for me.
Thanks
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Function to hide widget’ is closed to new replies.