Struninn for YouTube
Template Functions
The plugin provides template functions for the following widgets:
Channel Subscriber Count
Syntax
struninnyoutube_template_channel_subscriber_count( array $args = [] )
Parameters
$args
(array) (Optional) Arguments to modify template output.
$additional_wrapper_classes
(array) (Optional) Additional classes for the wrapper.
$template
(string) (Optional) Channel subscriber count template, one of: ‘v1’, ‘v2’, ‘v3’, ‘v4’.
Default value: ‘v1’
$hide_subscribe_button
(bool) (Optional) True to hide subscribe button, false otherwise.
Default value: false
$styles
(string) (Optional) Additional inline styles for the wrapper.
Example
$args = [
'template' => 'v2',
'additional_wrapper_classes' => ['custom-class-1', 'custom-class-2']
];
struninnyoutube_template_channel_subscriber_count($args);