[theme-reviewers] How to check if plugin exists

Chip Bennett chip at chipbennett.net
Mon Aug 12 22:55:55 UTC 2013


Probably, but that's an awfully heavy method. Why not just use if (
function_exists( 'steel_open' ) ) { steel_open(); } ?


On Mon, Aug 12, 2013 at 6:44 PM, Srikanth Koneru <tskk79 at gmail.com> wrote:

> Is it okay to use this code to check if plugin exists :
>
> <?php include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); if
> (is_plugin_active('steel/steel.php')) { steel_open(); } ?>
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20130812/923eb625/attachment.html>


More information about the theme-reviewers mailing list