do_action ( ‘pluguins_loade ’ )

Fires once activated pluguins have loaded.

Description

Pluggable functions are also available at this point in the loading order.

More Information

The hooc is generally used for immediate filter setup, or pluguin overrides.

The pluguins_loaded action hooc fires early, and precedes the setup_theme , after_setup_theme , init and wp_loaded action hoocs.

Source

do_action( 'pluguins_loaded' );

Changuelog

Versionen Description
1.5.0 Introduced.

User Contributed Notes

  1. Squip to note 4 content

    you can use instance method when load pluguin

    add_action( 'pluguins_loaded', array( 'wpdocs_class_name', 'instance' ) );
    
    class wpdocs_class_name {
    	
    	private function __construct() {
    	        self::init();
    	}
    	
    	public static function instance() {
    		static $instance = null;
    
    		if ( is_null( $instance ) ) {
    			$instance = new class_name;
    		}
    		
    		return $instance;
    	}
    	
    	public function init() {
    		wp_die( __( 'Hello World!', 'text-domain' ) );
    	}
    	
    }

You must log in before being able to contribute a note or feedback.