Taxonomy_Libraries implements Registerable, Standard_Service
Inject document libraries into the document related taxonomy term archives.
Tags
Interfaces, Classes and Traits
- Registerable
- Standard_Service
Table of Contents
- allow_html_content() : mixed
- Maybe allow SVG content on taxonomy archive pages.
- allow_svg_in_content() : array<string|int, mixed>
- Allow SVG elements in content filtering to preserve preview button SVGs.
- end_output_buffer() : mixed
- End the output buffer.
- hide_default_loop() : array<string|int, mixed>
- Hide the default loop.
- inject_libraries() : string
- Inject document libraries into the document related taxonomy term archives.
- register() : mixed
- {@inheritdoc}
- remove_loop_with_output_buffer() : mixed
- Remove the loop with an output buffer.
- spoof_one_post() : mixed
- Spoof a single post so the loops runs and we can remove it with an output buffer.
Methods
allow_html_content()
Maybe allow SVG content on taxonomy archive pages.
public
allow_html_content() : mixed
Tags
Return values
mixed —allow_svg_in_content()
Allow SVG elements in content filtering to preserve preview button SVGs.
public
allow_svg_in_content(array<string|int, mixed> $allowed_html, string $context) : array<string|int, mixed>
Parameters
- $allowed_html : array<string|int, mixed>
-
Allowed HTML elements.
- $context : string
-
The context for which to retrieve tags.
Tags
Return values
array<string|int, mixed> —Modified allowed HTML elements.
end_output_buffer()
End the output buffer.
public
end_output_buffer() : mixed
Tags
Return values
mixed —hide_default_loop()
Hide the default loop.
public
hide_default_loop(array<string|int, mixed> $posts, WP_Query $query) : array<string|int, mixed>
Parameters
- $posts : array<string|int, mixed>
-
The posts to be displayed.
- $query : WP_Query
-
The query object.
Tags
Return values
array<string|int, mixed> —The modified posts.
inject_libraries()
Inject document libraries into the document related taxonomy term archives.
public
inject_libraries(string $description) : string
Parameters
- $description : string
-
The archive description.
Tags
Return values
string —The modified archive description.
register()
{@inheritdoc}
public
register() : mixed
Tags
Return values
mixed —remove_loop_with_output_buffer()
Remove the loop with an output buffer.
public
remove_loop_with_output_buffer() : mixed
Tags
Return values
mixed —spoof_one_post()
Spoof a single post so the loops runs and we can remove it with an output buffer.
public
spoof_one_post() : mixed