filtrod 2.3.0
get_tags
Opis — z kodu źródłowego
Filters the array of term objects returned for the 'post_tag' taxonomy.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$tags | \WP_Term[] | int | \WP_Error | Array of 'post_tag' term objects, a count thereof, or WP_Error if any of the taxonomies do not exist. |
$args | array | An array of arguments. See {@see \get_terms()}. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_tags', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_tags', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii