Debugging Hooks, Actions and Filters

Debugging Hooks, Actions and Filters


WordPress Hook Execution Order WordPress Hook Order

Woow. Ovo nije običan plugin, već pravi biser. Daje spisak svih filtera i hookova u pravilnom redosledu. Hooks View

WordPress Loading Sequence

WordPress loading sequence: A guided tour - webdesign filters - What is the very earliest action hook you can call? - WordPress Development Stack Exchange Between functions.php, widgets and plugins, which is loaded first? - WordPress Development Stack Exchange

Must use plugins are plugins that you won’t manage through the normal plugin admin screens. They are useful if you are building an application in which it makes no sense that end users would enable/disable parts of the application.

Another use for must use plugins is a plugin that loads before all other plugins, because the normal plugins are only loaded further on in wp-settings.

After loading MU-plugins, you get the earliest hook you can call, muplugins_loaded and at this point there are still no “regular” plugins loaded. It is the first do_action inside wp-settings.php.

add_filter( 'option_active_plugins', array( $this, 'do_disabling' ) );
add_filter( 'site_option_active_sitewide_plugins', array( $this, 'do_network_disabling' ) );

add_action(‘muplugins_loaded’, function () { // your code here });

date 08. May 2023 | modified 29. Dec 2023
filename: Plugins » Debug Hooks