active_callback on is_active_widget
-
Hello again (last time on github),
I’m posting here since it not an issue but a question.I’m wondering, tried a lot, if it’s possible to use
is_active_widget(”, ”, ‘widget-ID’) as an active_callback ?
I’m just trying to hide a color control if a specific widget is not active.Can’t use required since it’s not depending on other field(s) value(s),
and struggled a lot, with no result, to create a custom callback function
but i don’t know yet how to return an if statement in php to reproduce this example by using if(is_active_widget(”, ”, ‘widget-ID’))function my_custom_callback() { return ( is_singular( 'recipe' ) ) ? true : false; }
Thanks a lot in advance for your help.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘active_callback on is_active_widget’ is closed to new replies.