Check if function exists before processing Widgets
-
Hi,
I would ask if it’s possible to make a check on the declared widget conditional tags.
Suppose you have BuddyPress Installed and want to show widgets only when the displayed page is a BuddyPress one. We can use is_buddypress(). But if for maintenance we disable BuddyPress Plugin, than widget logics returns error:
Call to undefined function is_buddypress() in /var/www/www.example.com/httpdocs/wp-content/plugins/widget-logic/widget_logic.php(286) : eval()'d code on line 1This could be easly avoid with the use of function_exists( $conditional_function ) check.
Thanks 🙂
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Check if function exists before processing Widgets’ is closed to new replies.