wp-lemon Docs
Generic_Ajax_Query
Generic_Ajax_Query
Generic_Ajax_Query
This class is used for the node-archive block. Can be extended for custom ajax query blocks.
Overview
Methods
Name | Return Type | Summary/Returns |
---|---|---|
extra_args() | Add extra arguments to the query. | |
prepare() | Prepare parameters before building the query arguments. | |
query_args() | Setup query arguments for the query. | |
register() | Handle the registration of the AJAX actions. |
Class Methods
extra_args()
Add extra arguments to the query.
Can be extended by running the parent method from within the child class.
extra_args( ?array $extra_args )
Name | Type | Description |
---|---|---|
$extra_args | null or array | extra arguments for the query. |
prepare()
Prepare parameters before building the query arguments.
Can be extended by running the parent method from within the child class.
query_args()
Setup query arguments for the query.
Can be extended or overwritten by running the parent method from within the child class.
register()
Handle the registration of the AJAX actions.
Can be extended for custom AJAX queries.
Edit this page on GitHub