after_plugin_row_{$plugin_file}

ACTION wp-admin\includes\class-wp-plugins-list-table.php (ligne 1512) github
Fires after each specific row in the Plugins list table. The dynamic portion of the hook name, `$plugin_file`, refers to the path to the plugin file, relative to the plugins directory.

Paramètres

Entrée :
$plugin_file, $plugin_data, $status
Sortie :
@param string $plugin_file Path to the plugin file relative to the plugins directory.
@param array  $plugin_data An array of plugin data. See get_plugin_data()
@param string $status      Status filter currently applied to the plugin list.

Utilisation

// Ajouter une fonction au hook action 'after_plugin_row_{$plugin_file}'
add_action('after_plugin_row_{$plugin_file}', 'ma_fonction_personnalisee', 10, 1);

function ma_fonction_personnalisee($plugin_file, $plugin_data, $status) {
    // Votre code ici
    error_log('Hook after_plugin_row_{$plugin_file} déclenché');
}

Actualités

Chargement des actualités...