filtrod 4.9.0
get_the_post_type_description
Opis — z kodu źródłowego
Filters the description for a post type archive.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$description | string | The post type description. |
$post_type_obj | \WP_Post_Type | The post type object. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_the_post_type_description', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_the_post_type_description', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii