The correct “WordPress” way of doing it would be to use the_widget template tag to display widgets anywhere you want.
so in you case you would something like this:
$instance['account'] = 'account name'; //Ustream channel name
$instance['online'] = 'http://www.online_image.URL';
$instance['offline'] = 'http://www.offline_image.URL';
the_widget('wp_ustream_status', $instance);
Related Posts:
- Api external with wordpress
- How to convert Currency from USD to other IP Based currency in Php function
- Disable plugin / plugin action via theme
- How do I call wp_get_current_user() in a plugin when plugins are loaded before pluggable.php?
- What WordPress API function lists active/inactive plugins?
- Need to create a Theme demo site that features multiple themes
- Define Function in functions.php or plugin and call in theme loop
- Autogenerate wordpress shortcodes using array?
- How should I use register_setting, add_settings_section, & add_settings_field in my plugin’s options page?
- Why does including a file in theme’s functions.php not work?
- WooCommerce create new product and add to cart on form submit
- Adding New Role
- Using custom code, how can I fetch data from the WordPress plugin repo?
- Shortcode under a Shortcode Multiple times Possible?
- Add Top-Level Menu that opens URL
- wordpress custom login successful redirect hook
- WordPress ajax call for not logged in users, doesn’t work
- Display All Non-Used Plugins
- New Plugin: Post update pushes a copy as a revision
- Placement of Code in Plugin for hooking `save_post`
- Add get_option to jquery
- Get all categories of custom post even not assigned
- Function to prevent users from trashing comments
- Avoiding Duplicate function names in Post Loop (WP_Footer script)
- How to add class in plugin only for network site?
- How does WordPress process plugin installations?
- PHP Fatal error: Call to undefined function plugin_basename
- Sending WP posts to external API
- CMB2 Repeatable Group & JSON API
- Executing my function once on a specific time
- Missing Argument
- load_plugin_textdomain error
- wordpress plugin is not activating from widget
- How to access data in wordpress database externally using php
- Adding Shortcode to Text Widget
- Does WordPress validate inputs to all functions? (such as get_user_meta and insert_user_meta)
- Using a function to change favorites listing
- WP Query. Is there a maximum size?
- How to remove custom post type and add category and post name
- WordPress does not show products when the value of post_parent is not 0
- bbPress plugin: forum lists not showing in correct order? [closed]
- Difference and examples of esc_attr__() and esc_attr_e()
- WordPress stats API key
- Is there a best practice remediation for PhpStorm’s warning that void function the_post_thumbnail is used?
- Socialite WP plugin, unable to obtain API keys from FB
- How to pass the API key to the client from the database? [closed]
- execute function after one completed
- Getting a Page via its post-name using WP REST API v2 and Postman
- How to reset the plugins without deactivate the plugin
- plugins_url() works everywhere but wp_reqister_script()
- Adding class to last list item? Not WP generated
- Replacing global wp_query
- Integrating boxtal PHP library into a custom WordPress Plugin
- I changed .live() to .on() but change is not reflected on the server
- How to get specific string/value from an array? php [closed]
- WordPress Stock Update Programatically
- Custom API plugin to execute 3rd party API to retrieve data
- 5 PHP Fatal error: Uncaught ArgumentCountError (Cannot Find)
- How can I fetch data from another website to my wordpress website with mysql database
- Getting a ressource ID, from a WC_Order_Item_Product/Order
- Sending customer an email with link to stripe to make payment
- how to change wp-admin url using function file
- same user role or copy the user role to be same as the other role
- Could not add ‘LoginLogout’ link using BAW login logout plugin
- My widget won’t update its values when save is clicked
- Execute a function when the entire page is displayed
- How can i listing current category and Featured Category post list?
- How to add custom function to pluggable.php
- grab or load text on demand
- sliding/fading header plugin or approach suggestion
- How would I get the new plugin version on this function?
- Do i need to use a plugin for third party api integration?
- Search in WordPress
- Modify function output in a plugin
- Override filter variable not working
- Is admin section completely customizable in terms of styling?
- How to make the first letter of a post title uppercase, in a plugin?
- Migrating custom php we wrote from functions.php into a site-specific plugin
- How to replace native comment_count with Comments Evolved aggregate count
- Code fails in plugin file but works in functions.php
- Conditional required fields for WordPress Contact Form 7
- Hook into install email
- wordpress Shortocode running twice?
- Cannot access variables within a widget
- Calling an custom field from theme option at the frontend
- WordPress plugin options need to delete after deactivate & uninstall
- WordPress function to add text
- Doing action based on input from options menu
- Import tumblr post to wordpress blog
- Sync roles across several plugins
- How to import data from another website using an API link?
- How to Allow Users to Select Recipients In a WordPress Comment section?
- How often should I execute add_filter and function declaration in Code Snippets?
- How to write a plugin that “listens” every time, an edit occurs?
- Product customizing quiz – quiz adding products to the cart
- How to change all the urls of the WordPress site?
- Show WooCommerce products based on query parameters on redirect
- move setting data from wordpress api to codestar freamwork
- Event Made Easy – Block registration to two or more events that have the same category
- I want to allow certain file types on dokan upload files