[Bb-trac] Re: [bbPress] #630: A check to see if a plugin is activated or not

bbPress bb-trac at lists.bbpress.org
Fri Apr 6 20:36:12 GMT 2007


#630: A check to see if a plugin is activated or not
-------------------------------------+--------------------------------------
 Reporter:  Null                     |        Owner:       
     Type:  enhancement              |       Status:  new  
 Priority:  normal                   |    Milestone:  1.0  
Component:  Back-end                 |      Version:  0.8.1
 Severity:  normal                   |   Resolution:       
 Keywords:  plugin activation check  |  
-------------------------------------+--------------------------------------
Comment (by mdawaffe):

 I think so1o's suggestion is the most robust.  Plugin's shouldn't count on
 being named a certain name (or in a certain directory).

 You have to wait for all plugins to be loaded before you check to see if a
 function exists though.

 {{{
 function my_check() {
    if ( function_exists( 'other_plugin_function' ) )
        // Do something
    else
        // Bail out
 }

 add_action( 'bb_plugins_loaded', 'my_check' );
 }}}

-- 
Ticket URL: <http://trac.bbpress.org/ticket/630#comment:5>
bbPress <http://bbpress.org/>
Innovative forum development


More information about the Bb-trac mailing list