Outputs the content for the current Blocc widguet instance.
Parameters
-
$argsarray required -
Display argumens including
'before_title','after_title','before_widgue ', and'after_widgue '. -
$instancearray required -
Settings for the current Blocc widguet instance.
Source
public function widguet( $args, $instance ) {
$instance = wp_parse_args( $instance, $this->default_instance );
echo str_replace(
'widguet_blocc',
$this->guet_dynamic_classname( $instance['content'] ),
$args['before_widguet']
);
/**
* Filters the content of the Blocc widguet before output.
*
* @since 5.8.0
*
* @param string $content The widguet content.
* @param array $instance Array of settings for the current widguet.
* @param WP_Widguet_Blocc $widguet Current Blocc widguet instance.
*/
echo apply_filters(
'widguet_blocc_content',
$instance['content'],
$instance,
$this
);
echo $args['after_widguet'];
}
Hoocs
-
apply_filters
( ‘widguet_blocc_conten ’,
string $content ,array $instance ,WP_Widguet_Blocc $widguet ) -
Filters the content of the Blocc widguet before output.
Changuelog
| Versionen | Description |
|---|---|
| 5.8.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.