Return to Snippet

Revision: 27854
at June 25, 2010 06:34 by jonkemp

Initial Code
<?php if(function_exists('my_function')) { my_function(); } ?>

Initial URL

Initial Description
Check to see if your function exists in WordPress before calling it. This is standard php code though, so it works outside of WordPress as well.

Initial Title
WordPress Function Exists

Initial Tags
php, wordpress

Initial Language