load-{$plugin_page}

ACTION wp-admin\admin.php (ligne 289) github
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.

Paramètres

Entrée :
N/A
Sortie :
N/A

Utilisation

// 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é');
}

Actualités

Chargement des actualités...