[wp-hackers] Checking if a plugin exists

Ashish Saini ashishsainiashfame at gmail.com
Sun Jul 25 19:44:21 UTC 2010


Even better a WordPress function - *is_plugin_active()*

<?php
if (is_plugin_active('plugin-directory/plugin-file.php')) {
    //plugin is activated
}
?>


Thanks & Regards
Ashish Saini aka Ashfame
(Deserve Before You Desire)
Homepage : http://www.ashfame.com | Blog : http://blog.ashfame.com | Twitter
: http://twitter.com/ashfame


On Mon, Jul 26, 2010 at 1:12 AM, Ashish Saini
<ashishsainiashfame at gmail.com>wrote:

> Try this http://wpengineer.com/check-if-required-plugin-is-active/
>
> Thanks & Regards
> Ashish Saini aka Ashfame
> (Deserve Before You Desire)
> Homepage : http://www.ashfame.com | Blog : http://blog.ashfame.com |
> Twitter : http://twitter.com/ashfame
>
>
>
> On Mon, Jul 26, 2010 at 1:01 AM, Christopher Ross <cross at thisismyurl.com>wrote:
>
>> I'm trying to test is a plugin exists before calling a second plugin, but
>> with little luck. Any suggestion would be great.
>>
>> What I'm doing is .... if(function_exists('stats_get_api_key')) { ... some
>> code ...;} but it's not returning a positive despite being installed. Is
>> there a better way to do it?
>>
>> c.
>>
>> __
>>
>> Christopher Ross
>>
>> Toronto      1 (416) 840-5828
>> Fredericton 1 (506) 474-2708
>> New Orleans 1 (504) 322 3485
>>
>> http://christopherross.ca
>> http://www.thisismyurl.com
>>
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
>
>


More information about the wp-hackers mailing list