SearchWP implements Registerable, Service
Handles integration with SearchWP
Tags
Interfaces, Classes and Traits
- Registerable
- Service
Table of Contents
- $applicable : mixed
- $args : mixed
- handle_posts_query() : mixed
- Determine if we should run the query through SearchWP
- handle_ptp_args() : array<string|int, mixed>
- Store the args so we can pass them to the SearchWP query.
- handle_searchwp_args() : array<string|int, mixed>
- Run our query through SearchWP.
- register() : mixed
- {@inheritdoc}
Properties
$applicable
private
mixed
$applicable
= false
Tags
$args
private
mixed
$args
Tags
Methods
handle_posts_query()
Determine if we should run the query through SearchWP
public
handle_posts_query(Table_Query $query) : mixed
Parameters
- $query : Table_Query
Tags
Return values
mixed —handle_ptp_args()
Store the args so we can pass them to the SearchWP query.
public
handle_ptp_args(array<string|int, mixed> $query_args, Table_Query $query) : array<string|int, mixed>
Parameters
- $query_args : array<string|int, mixed>
- $query : Table_Query
Tags
Return values
array<string|int, mixed> —handle_searchwp_args()
Run our query through SearchWP.
public
handle_searchwp_args(array<string|int, mixed> $args, WP_Query $query) : array<string|int, mixed>
Parameters
- $args : array<string|int, mixed>
- $query : WP_Query
Tags
Return values
array<string|int, mixed> —register()
{@inheritdoc}
public
register() : mixed