{"id":515,"date":"2022-05-24T20:20:52","date_gmt":"2022-05-24T20:20:52","guid":{"rendered":"http:\/\/localhost\/wordpress_odindocs\/?p=459"},"modified":"2022-05-24T20:20:52","modified_gmt":"2022-05-24T20:20:52","slug":"template-functions-3","status":"publish","type":"post","link":"https:\/\/odindesignthemes.com\/struninndocs\/template-functions-3\/","title":{"rendered":"Template Functions"},"content":{"rendered":"\n<p>The plugin provides template functions for the following widgets:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong><a href=\"#channel-subscriber-count\">Channel Subscriber Count<\/a><\/strong><\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"channel-subscriber-count\"><strong>Channel Subscriber Count<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Syntax<\/h3>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#24831d\" class=\"has-inline-color\">struninnyoutube_template_channel_subscriber_count(<\/mark> <mark style=\"background-color:rgba(0, 0, 0, 0);color:#cd2f23\" class=\"has-inline-color\">array<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#0f55c8\" class=\"has-inline-color\"> $args<\/mark> <mark style=\"background-color:rgba(0, 0, 0, 0);color:#24831d\" class=\"has-inline-color\">=<\/mark> [] <mark style=\"background-color:rgba(0, 0, 0, 0);color:#24831d\" class=\"has-inline-color\">)<\/mark><\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Parameters<\/h3>\n\n\n\n<p><strong>$args<\/strong><br><em>(array)<\/em> <em>(Optional)<\/em> Arguments to modify template output.<\/p>\n\n\n<p style=\"padding-left: 40px;\"><strong>$additional_wrapper_classes<\/strong><br \/><em>(array) (Optional)<\/em> Additional classes for the wrapper.<\/p>\n<p style=\"padding-left: 40px;\"><strong>$template<\/strong><br \/><em>(string) (Optional) <\/em><span style=\"color: initial;\">Channel subscriber count template, one of: &#8216;v1&#8217;, &#8216;v2&#8217;, &#8216;v3&#8217;, &#8216;v4&#8217;<\/span><em>.<\/em><br \/><em>Default value: &#8216;v1&#8217;<\/em><\/p>\n<p style=\"padding-left: 40px;\"><strong>$hide_subscribe_button<\/strong><em><br \/>(bool) (Optional) <\/em><span style=\"color: initial;\">True to hide subscribe button, false otherwise<\/span>.<em><br \/>Default value: false<\/em><\/p>\n<p style=\"padding-left: 40px;\"><strong>$styles<\/strong><em><br \/>(string) (Optional) <\/em><span style=\"color: initial;\">Additional inline styles for the wrapper<\/span>.<\/p>\n\n\n<h3 class=\"wp-block-heading\">Example<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>$args = &#91;\n  'template'                   => 'v2',\n  'additional_wrapper_classes' => &#91;'custom-class-1', 'custom-class-2']\n];\n\nstruninnyoutube_template_channel_subscriber_count($args);<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The plugin provides template functions for the following widgets: Channel Subscriber Count 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: &#8216;v1&#8217;, &#8216;v2&#8217;, &#8216;v3&#8217;, &#8216;v4&#8217;.Default value: &#8216;v1&#8217; $hide_subscribe_button(bool) (Optional) True to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,10],"tags":[],"class_list":["post-515","post","type-post","status-publish","format-standard","hentry","category-struninn-for-youtube","category-subscribers-live-count-plugin"],"_links":{"self":[{"href":"https:\/\/odindesignthemes.com\/struninndocs\/wp-json\/wp\/v2\/posts\/515"}],"collection":[{"href":"https:\/\/odindesignthemes.com\/struninndocs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/odindesignthemes.com\/struninndocs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/odindesignthemes.com\/struninndocs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/odindesignthemes.com\/struninndocs\/wp-json\/wp\/v2\/comments?post=515"}],"version-history":[{"count":0,"href":"https:\/\/odindesignthemes.com\/struninndocs\/wp-json\/wp\/v2\/posts\/515\/revisions"}],"wp:attachment":[{"href":"https:\/\/odindesignthemes.com\/struninndocs\/wp-json\/wp\/v2\/media?parent=515"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/odindesignthemes.com\/struninndocs\/wp-json\/wp\/v2\/categories?post=515"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/odindesignthemes.com\/struninndocs\/wp-json\/wp\/v2\/tags?post=515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}