Fires before a particular screen is loaded. The load-* hook fires in a number of contexts. This hook is for plugin screens where the file to load is directly included, rather than the use of a function. The dynamic portion of the hook name, `$plugin_page`, refers to the plugin basename.
N/A
Sortie :
// Ajouter une fonction au hook action 'load-{$plugin_page}'
add_action('load-{$plugin_page}', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee() {
// Votre code ici
error_log('Hook load-{$plugin_page} déclenché');
}
Chargement des actualités...