Title: nggLoader start_plugin method
Last modified: August 19, 2016

---

# nggLoader start_plugin method

 *  [wrk](https://wordpress.org/support/users/wrk/)
 * (@wrk)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/nggloader-start_plugin-method/)
 * 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)

 *  [Alex Rabe](https://wordpress.org/support/users/alexrabe/)
 * (@alexrabe)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/nggloader-start_plugin-method/#post-1429487)
 * is_admin() defines what kinf of files will be loaded..
 *  Thread Starter [wrk](https://wordpress.org/support/users/wrk/)
 * (@wrk)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/nggloader-start_plugin-method/#post-1429496)
 * I know yeah but the admin panel is created in the ‘load_dependencies’ method (
   the nggAdminPanel class called) and not in the ‘start_plugin’ method. I think
   you commented wrong in the start_plugin method..
 *  [Alex Rabe](https://wordpress.org/support/users/alexrabe/)
 * (@alexrabe)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/nggloader-start_plugin-method/#post-1429527)
 * ok, correct. the comment is wrong or obsolete…
 *  Thread Starter [wrk](https://wordpress.org/support/users/wrk/)
 * (@wrk)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/nggloader-start_plugin-method/#post-1429528)
 * Thanks Alex.
    There are some more things which I think are trivial. Shall I post
   them here or send them by e-mail?
 *  [Alex Rabe](https://wordpress.org/support/users/alexrabe/)
 * (@alexrabe)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/nggloader-start_plugin-method/#post-1429529)
 * Open any issue at my [GoogleCode project](http://code.google.com/p/nextgen-gallery/issues/list),
   the best place where I can track them.
 * BTW : Comment if fixed : [http://code.google.com/p/nextgen-gallery/source/detail?r=711](http://code.google.com/p/nextgen-gallery/source/detail?r=711)
 *  Thread Starter [wrk](https://wordpress.org/support/users/wrk/)
 * (@wrk)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/nggloader-start_plugin-method/#post-1429530)
 * Cool! I will use this in the future.. (Y)

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘nggLoader start_plugin method’ is closed to new replies.

 * 6 replies
 * 2 participants
 * Last reply from: [wrk](https://wordpress.org/support/users/wrk/)
 * Last activity: [16 years, 1 month ago](https://wordpress.org/support/topic/nggloader-start_plugin-method/#post-1429530)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
