filtrod 2.3.0
get_the_tags
Opis — z kodu źródłowego
Filters the array of tags for the given post.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$terms | \WP_Term[] | false | \WP_Error | Array of WP_Term objects on success, false if there are no terms or the post does not exist, WP_Error on failure. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'get_the_tags', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'get_the_tags', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii