filtrod 6.9.0
wp_ajax_menu_quick_search_args
Opis — z kodu źródłowego
Filter the menu quick search arguments.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$args | array | { Menu quick search arguments. @type boolean $no_found_rows Whether to return found rows data. Default true. @type boolean $update_post_meta_cache Whether to update post meta cache. Default false. @type boolean $update_post_term_cache Whether to update post term cache. Default false. @type int $posts_per_page Number of posts to return. Default 10. @type string $post_type Type of post to return. @type string $s Search query. @type array $search_columns Which post table columns to query. } |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'wp_ajax_menu_quick_search_args', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'wp_ajax_menu_quick_search_args', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii