Posted By

jonkemp on 06/25/10


Tagged

php wordpress


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

colingardom
d55beck
josephknight


WordPress Function Exists


 / Published in: PHP
 

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.

  1. <?php if(function_exists('my_function')) { my_function(); } ?>

Report this snippet  

You need to login to post a comment.