• Hello,

    Im doing some research in the next gen gallery plugin and don’t understand the following in the nggLoader class:

    In the ‘constructor’ the method ‘start_plugin()’ is called with:

    // Start this plugin once all other plugins are fully loaded
    add_action( 'plugins_loaded', array(&$this, 'start_plugin') );

    Then in the start_plugin method, it says to or load the admin panel or the frontend functions.

    // Load the admin panel or the frontend functions
    if ( is_admin() ) {	
    
      // Pass the init check or show a message
      if (get_option( 'ngg_init_check' ) != false )
        add_action( 'admin_notices', create_function('', 'echo \'<div id="message" class="error"><p><strong>' . get_option( "ngg_init_check" ) . '</strong></p></div>\';') );
    
      } else {
          //..load front end functions

    I can’t figure out were in this frase the admin panel is loaded..

    Anybody some clear visions??

    cheers!

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘nggLoader start_plugin method’ is closed to new replies.