FacetWP implements Registerable, Service
Handles integration with FacetWP
Tags
Interfaces, Classes and Traits
- Registerable
- Service
Table of Contents
- register() : mixed
- {@inheritdoc}
- render_posts_table() : string
- Load the posts table if template begins with 'ptp_'.
- get_no_posts_message() : string
- Retrieve the string for the no posts message.
- get_posts_table_script() : string
- Generate script tag to re-init posts table after facet loading.
Methods
register()
{@inheritdoc}
public
register() : mixed
Tags
Return values
mixed —render_posts_table()
Load the posts table if template begins with 'ptp_'.
public
render_posts_table(string $output, FacetWP_Renderer $renderer) : string
Parameters
- $output : string
- $renderer : FacetWP_Renderer
Tags
Return values
string —get_no_posts_message()
Retrieve the string for the no posts message.
private
get_no_posts_message(array<string|int, mixed> $custom_args) : string
Parameters
- $custom_args : array<string|int, mixed>
Tags
Return values
string —get_posts_table_script()
Generate script tag to re-init posts table after facet loading.
private
get_posts_table_script() : string