Was easier than I thought, didn’t know that you could execute shortcodes in the text/html block.
function twitch_api_client_views_shortcode() {
$twitch = twitch_api_client();
return $twitch->getViewCount();
}
add_shortcode( 'twitch-views', 'twitch_api_client_views_shortcode' );
And then [twitch-views] in Slider Revolution text/html layer.
Related Posts:
- Using WordPress as a CMS: Developer preferences for custom vs existing plugins
- Preserve custom URL parameter on more pages
- Sort plugins by rating
- How to Delete All regenerated thumbnails but keep the original ones?
- Why do I get this “plugin does not have a valid header” error?
- if plugin is active? check if plugin is enabled or not?
- WordPress Capabilities: edit_user vs edit_users
- Passing .pem and .key files in cURL doesn’t work in WordPress
- Is there a limit on the size of a WP page?
- A Blog’s changelog
- Adding a widget programmatically
- How do I create a custom wordpress slideshow plugin?
- Updating a WordPress plugins breaks SVN
- Seeking clarification on page request life-cycle
- Template plugin for blog posts? [closed]
- Are contributed plugin translations automatically installed in WordPress?
- Why would WP-CLI and WP Admin show different list of plugins with updates?
- How do you install the automattic developer plugin under localhost for mamp when there is an error, deprecated?
- Translating plugin inside the theme [closed]
- Admin Dashboard with Custom Tab for Client
- reorder plugin menu position
- How can I serve a text file at a custom URL
- How to add custom link to menu in wordpress programmatically?
- Plugin not saving values when placed in a folder within /wp-content/plugins
- Set WordPress TinyMCE Editor To Readonly
- Create a custom page template inside my wordpress plugin
- Add form fields dynamically on button click
- Custom Post Type Plugin not loading category template and loading 404 instead
- WP plugins for building a database?
- Change the method of a class from child function.php
- Can I use a plugin for a singular page on my website?
- Create digital-virtual-downloadable WooCommerce products from the frontend using Gravity Forms? [closed]
- Is it possible to add a sidebar in a woocommerce hook?
- How to add Internationalization in WordPress using Javascript/React?
- How to send an automated email to the customers when product is added woocommerce
- Trying to Get Text Field to Save
- I want to auto populate data in three fields if one drop down is selected
- How to insert HTML/JavaScript form into WordPress page? [closed]
- file-gallery plugin line 1573 broken in 4.2 upgrade [closed]
- How do I use wp_editor() in widget form?
- PHP Error When a plugin is active
- Errors when trying to use a plugin to write to the database
- _prime_post_caches in wordpress
- Completely disabling password reset/recovery
- Plugin settings won’t save changes
- how to prevent all css and javascripts files from loading
- Best way to count visitors?
- WPTouch – how to remove shortcodes or make shortcodes function
- Adding class to last list item? Not WP generated
- Trying to add a page template for my custom post type from a plugin, but it will not display in the template dropdown unless file is in theme
- Custom shortcode for displaying user based on a role parameter
- How to execute plugin and theme updates from a web hook / endpoint?
- trigger email when post is published by someone a user follows
- WP-API Custom Post Type json_no_route
- My widget won’t update its values when save is clicked
- Install old version of plugin from admin panel?
- insert an html tag using php plugin
- Extend a plugin to include a widget option
- Can we give Pending as a Role to wp_insert_user?
- Is the Block Bad Queries Plugin Still Relevant?
- Rename Smart YouTube’s httpv back to http for all posts
- Custom page from wp admin area
- Create category for each user
- how to display data from user panel using cmb2 metabox?
- How page with random php file with query params generated
- location lock wordpress website
- WooCommerce Product Table – filter query on attributes
- Why does plugin_url append absolute file path?
- PDF Viewer Origin is Different
- WordPress Sumo Plugin not showing all images on clicking pinterest icon
- Insert Google Maps HTML in WordPress
- WP nonce verification
- Enable a Coming Soon Page while the rest of the site is accessible
- Call to undefined function add_action() in plugin
- Integrating the Office 365 and/or Windows Live credentials in to our website like FB and Twitter
- Created wordpress using quick install on Hostgator but unable to access the URLS
- How to Display image from Menu Image in Walker Dropdown Select Menu
- How to add separator between default and custom panels in WordPress customizer?
- How to replace native comment_count with Comments Evolved aggregate count
- Having trouble going from Jfiddle to implementing in WordPress :(
- Buddypress Member list not showing admin and mods
- Shortcode in a blog post, footer and related products stop working
- SVN problem – commit taking forever to fix incomplete prior commit
- Editing a built plugin: How to activate it only on a single post page
- pluggable function in theme, to be overridden by plugin
- Restrict my pages from public
- Plugin: Unable to Save the Image Alignment Option to Display in the Widget in the Sidebar
- Remove action plugin
- Plugin programming: Uploading a file to a specific folder
- Conditional statements using category and Tags
- Issue with custom plugin
- How to link that “logged in” in “you must be logged in to post a comment” with custom login page on WordPress?
- Get value of a key from a Plugin Serialized array
- Get post id in Post Page within Wp-admin
- How to insert current “login” page to certain page?
- Infinite scroll for text in post with url page change
- I want to disable certain file types from upload from dokan description field
- claim a permalink and all sublinks in plugin
- Play an animated character video on click of a button or radio button selection only
- Vanilla javascript in custom gutenberg block not working