The Solution to my problem is to simply let my plugins output run through the do_shortcode()
-Function of WordPress as pointed out by this article: Using Shortcodes Everywhere
I updated my plugin so it uses shortcodes, too, so now my output looks like this:
// Add this upon plugin initialization
add_shortcode( 'dosomethingawesome', array( &$this, 'output_callback') );
/**
* Plugins output
*
* Fetches the output from handle_callback() and then runs it through the
* do_shortcode() function to work with other plugins, too
*
* @uses do_shortcode()
* @access public
* @return string
*/
// {{{ output_callback()
public function output_callback() {
$sOutput = $this->handle_callback(); //returns the string of my plugins action
return do_shortcode($sOutput);
}
// }}}
Related Posts:
- PHP error with shortcode handler from a class
- Add self-closing shortcode button to TinyMCE in WP 4.6
- Optimize shortcode callbacks
- get_template_part from plugin
- How would I create a plugin for my shortcodes?
- How to control output of custom post type without modifying theme?
- How to prevent newline from appearing in shortcode?
- Shortcode adding p and br tags
- Are shortcodes case-sensitive?
- Enqueue script only when shortcode is used, with WP Plugin Boilerplate
- Allowing for multiple template views on the Gallery Settings page when using the Visual Editor
- Unit testing to simulate the loop
- How to make WordPress use non-greedy shortcode parsing?
- Multiple Parameters for a Shortcode
- How do I make specific plugin functionality apply to different sites in a network?
- Shortcodes, output buffering, and WordPress functions
- Filter on the_content ignores shortcodes
- stray elements
- Pass javascript result to shortcode executer function
- Front-End Form Submission in Shortcode
- How to get shortcode to work inside a foreach loop called within a shortcode?
- Get returned variable from a function to add_shortcode function
- How to Display Custom Post Type’s Gallery (images ) in Through WP_Query
- What is rich_editing?
- Why is my shortcode not working
- Error : “Updating failed: The response is not a valid JSON response” with custom shortcode
- On plugin deactivation hide its shortcode
- Can’t get JS code to work with shortcode
- add_shortcode is not working [duplicate]
- Paging on a future post loop?
- How can I render shortcode so that its not cached by Caching plugins?
- Is it possible to delay execution of shortcode output callback?
- Processing shortcodes in groups (separated by line breaks)?
- How do I write a shortcode that opens and closes?
- Finding posts containing matching array elements in a meta field usign WP_Query
- Using a Shortcode to Replace Themes Stylesheet?
- get_the_excerpt() not working in plugin loop
- using new WP_Query in save_post function alters $post
- Gutenberg Block showing invalid content on edit
- Slow WP_query due to nested wp_query. Need Suggestions
- Creating a shortcode, but getting tied up with OOP and Classes?
- Storing product price data in the database
- What is the best way to embed an JS App in a WordPress Page?
- What is the proper way to include Bootstrap when executing a shortcode
- Auto gallery from folder contents
- Secure Pages Best Practice
- Adding option to Gallery shortcode
- add_shortcode() not working inside of function
- Asynchronously render shortcodes in TinyMCE visual editor
- Custom login doesn’t work properly
- Is using custom table to suit business needs instead of transients a big hit to page load speed?
- Run Shortcode of post’s custom field in functions.php / Plugin
- Shortcode returning localized HTML part
- Hide shortcodes “code” when using the “editor” the same as wordpress do with “gallery”
- Enumerating shortcode attributes in JavaScript
- Wrap text around shortcode
- wp_nonce_field displaying twice
- How to handle shortcodes through plugin
- How to get the post excerpt using post object?
- Delist entries in the_loop
- Using a custom shortcode from within the template of a shortcode plugin
- When echoing my own shortcode, it keeps adding a 1 at the end of my blogpost
- Automating the process of shortcode generation in a plugin – how is it done?
- Create Widget or Enable Shortcodes in Sidebar
- shortcode executed in the page editor
- Shortcode not appearing when used as post content in wp_insert_post() or possibly, shortcode not being registered at all
- Add function after the_content
- How to make my shortcode load scripts and styles, from within the plugin?
- How to display the categories on page using shortcode?
- Shortcode conflicts
- How to create ShortCode
- How to display the specific post content by using POST ID
- How to output functions from plugin inside theme
- add_filter img_caption_shortcode not implemented
- shortcode tags not working in do_shortcode
- Get audio metadata on file upload
- How to insert HTML/CSS/JS into my iframe plugin?
- Including template in shortcodes
- Form submission to another page returning 404 error [duplicate]
- Get Posts by IDs (optionally)
- Identifying a Page Containing Shortcode at `init`
- Cannot echo a JS variable to a jQuery plugin coming from wp_localize_script
- How to show custom taxonomy child posts through shortcode in WordPress
- Best Way to Grab Post ID from Plugin
- Multi-part form and wp_redirect()
- add short code not working
- Create pages for authors
- Correct usage of scripts with shortcodes
- How to Pass ID through Short Code
- Shortcode attribute “title” doesn’t appear in $atts array
- Developing a wordpress.com shortcode [closed]
- WordPress simple ‘Hello World’ plugin – problems
- Shortcode rendered in preview, but empty in post
- How to display .ptm file in my WP site without JAVA
- Leveraging Core Functionality in Icon Upload Plugin [closed]
- Developing an IP lookup function using an API
- Shortcode to return data instead of outputting HTML?
- Using a shortcode to get User Emails by role as specified in the shortcode, need help to allow for multiple roles
- Resending woo-commerce order emails from frontend
- How to assign to each output values from foreach loop to a meta_key?