install_themes_{$tab}

ACTION wp-admin\theme-install.php (ligne 310) github
Fires at the top of each of the tabs on the Install Themes page. The dynamic portion of the hook name, `$tab`, refers to the current theme installation tab. Possible hook names include:  - `install_themes_block-themes`  - `install_themes_dashboard`  - `install_themes_featured`  - `install_themes_new`  - `install_themes_search`  - `install_themes_updated`  - `install_themes_upload`

Paramètres

Entrée :
$paged
Sortie :
@param int $paged Number of the current page of results being viewed.

Utilisation

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

function ma_fonction_personnalisee($paged) {
    // Votre code ici
    error_log('Hook install_themes_{$tab} déclenché');
}

Actualités

Chargement des actualités...