Determines whether the query is for a search.
Source
public function is_search() {
return (bool) $this->is_search;
}
Changelog
| Version | Description |
|---|---|
| 3.1.0 | Introduced. |
Determines whether the query is for a search.
public function is_search() {
return (bool) $this->is_search;
}
| Version | Description |
|---|---|
| 3.1.0 | Introduced. |
You must log in before being able to contribute a note or feedback.
exclude_from_searchparameter when registering the post type or via theregister_post_type_argsfilter.