pre_current_active_plugins

ACTION wp-admin\plugins.php (ligne 800) github
Fires before the plugins list table is rendered. This hook also fires before the plugins list table is rendered in the Network Admin. Please note: The 'active' portion of the hook name does not refer to whether the current view is for active plugins, but rather all plugins actively-installed.

Paramètres

Entrée :
$plugins['all']
Sortie :
@param array[] $plugins_all An array of arrays containing information on all installed plugins.

Utilisation

// Ajouter une fonction au hook action 'pre_current_active_plugins'
add_action('pre_current_active_plugins', 'ma_fonction_personnalisee', 10, 1);

function ma_fonction_personnalisee($plugins['all']) {
    // Votre code ici
    error_log('Hook pre_current_active_plugins déclenché');
}

Actualités

Chargement des actualités...