WP HOOKS
filtrdynamicznyod 3.1.0

theme_action_links_{$stylesheet}

Args 3Plik wp-admin/includes/class-wp-ms-themes-list-table.php

Opis — z kodu źródłowego

Filters the action links of a specific theme in the Multisite themes list table.

The dynamic portion of the hook name, $stylesheet, refers to the directory name of the theme, which in most cases is synonymous with the template name.

Parametry

ParametrTypOpis
$actionsstring[]An array of action links.
$theme\WP_ThemeThe current WP_Theme object.
$contextstringStatus of the theme, one of 'all', 'enabled', or 'disabled'.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'theme_action_links_{$stylesheet}', 'twoja_funkcja', 10, 3 );

function twoja_funkcja($param_1, $param_2, $param_3) {
	// Twój kod
}

Popularne w tej kategorii