Manually return false for function_exists
I'm having a run at developing a theme options plugin and right now working on implementing a 'hero' header, checking first to see if my plugin is active using:
if( function_exists( 'my_header_function ) ): my_header_function();
else:
/* carry on and output the default header... */
endif;
Now as my hero header depends on whether the image and logo have been uploaded I wonder if I can manually return a 'false' result from my hook in order to have the original conditional in my header carry on an output the normal header.
Any ideas? Many thanks.
Topic function-exists hooks plugins Wordpress
Category Web