apply_filters( 'clanbite_component_html', string $html, string $slug, array<string, mixed> $args, array<string, mixed> $def )Filters a component's HTML, for every component.
Filter PHP
Parameters
$html(string)Markup.
$slug(string)Component slug.
$args(array<string, mixed>)Arguments it was rendered with.
$def(array<string, mixed>)Component definition.
Example
add_filter( 'clanbite_component_html', function ( $html, $slug, $args, $def ) {
// Change $html here.
return $html;
}, 10, 4 );Defined in inc/components.php
Changelog
| Version | Description |
|---|---|
| 1.6.3 | Introduced. |