filtrod 5.5.0
wp_sitemaps_posts_pre_url_list
Opis — z kodu źródłowego
Filters the posts URL list before it is generated.
Returning a non-null value will effectively short-circuit the generation, returning that value instead.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$url_list | array[] | null | The URL list. Default null. |
$post_type | string | Post type name. |
$page_num | int | Page of results. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_sitemaps_posts_pre_url_list', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_sitemaps_posts_pre_url_list', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii