Assuming that $GLOBALS['Pootle_Page_Builder_Render_Layout']
carries an instance of Pootle_Page_Builder_Render_Layout
, the method panels_render()
returns a string.
So you can simply pass the method call as an argument to apply_filters()
:
$content = apply_filters( 'the_content', $GLOBALS['Pootle_Page_Builder_Render_Layout']->panels_render( $page_data->ID ) );
I’m not sure whether this is an intended use of the API of the plugin, as Pootle_Page_Builder_Render_Layout::panels_render()
remove some default filters from the content (wptexturize
, wpautop
and convert_chars
). So maybe your concern is also worth a question on the plugin support forum.
Related Posts:
- apply_filters(‘the_content’, $content) vs do_shortcode($content)
- How to get shortcode’s input values inside a filter?
- Filter specific shortcode output?
- Insert Custom HTML After Shortcode
- Is there a way to add another row to the tinyMCE kitchen sink toggle?
- add_filter and changing output captions of image gallery
- Filtered query_vars becomes global. Why does this work?
- How to add attribute to output with wp_video_shortcode add_filter
- Detecting Embed URLs Within post_content
- Search content for shortcodes and get parameters
- Change default settings used by gallery shortcode
- Shortcodes not resolved in AJAX call response
- Ajax, filters and shortcodes
- Format content value from DB outside of WordPress filters
- Filter the blog’s title without using global variables
- Use content custom filter for all shortcodes
- How to link current user to their author page through shortcodes
- filter title from shortcode
- how to remove filter from wordpress shortcode output
- Error when overriding only some audio shortcode HTML output
- How to use shortcode attribute in separate function
- Shortcodes — Using add_action, add_filter in the shortcode
- How to access plugin variables from theme templates without using globals?
- How to pass variables to custom filter from multiple functions
- How to filter backend post list showing only posts having a shortcode
- How can I return shortcode output to the top of the content?
- the_excerpt filter doesn’t work as expected
- run shortcode in excerpt of single custom post type
- Filter everything from content except output of a shortcode
- Something is filtering my shortcodes… Can’t figure out what
- How to use do_shortcode_tag to modify the output of a shortcode?
- Shortcodes within the sidebar text/html widget: How to preserve the raw HTML output of the shortcode?
- How to change dynamically page title according to variable data?
- How can I filter tag_description()?
- Why is overwriting $GLOBALS killing the_content()?
- WordPress removing slashes from shortcode output
- Access post ID in “content_save_pre”
- How to remove shortcode(s) from WYSIWYG Page editor for Non Admins
- Shortcode / plugin with custom (flexible) output
- Filter Shortcodes when using get_page
- Parse a shortcode differently based on on what it’s nested in
- Need to return shortcode text instead of the output
- add_filter to the_content after apply_filters
- post_orderby filter breaks function
- the_content getting current page content instead specified ID
- Override wordpress audio playlist
- How to wrap pattern-matches from the_content in [wiki]-shortcode tags
- Add Index to Item in WordPress Gallery
- create a shortcode with acf including a filter
- How to take shortcode and content separately from a page?
- Auto-generated excerpt with shortcode and read more button/text link
- shortcode function outputs multiple anchor tags
- Change shortcode output (filter?)
- Is it possible to include the add_filter() function within a shortcode function
- Activate short codes for all post queries?
- Save something to global var in add_filter
- Problem with shortcodes in external file
- How can I display wp_link_pages before a shortcode, if it is used, or display after content?
- How to add defer=”defer” tag in plugin javascripts?
- How do filters and hooks really work in PHP
- Trouble understanding apply_filters()
- How would one modify the filtering Gutenberg applies to pasted content?
- WordPress Internal @ Mentions
- Add Class to Specific Paragraph of the_content()
- apply_filters() slices away needed arguments
- How to override the email function by using filters? [closed]
- How to add attributes to tag when template cannot be directly modified
- Edit pagination text in the get_the_posts_pagination function
- How does WordPress call functions attached to a certain action hook before calling functions attached to other hooks
- How to get current action?
- how to change appearence of the content of default post list columns?
- Use safety filters even if after applied intval?
- When adding buttons to the tinyMCE editor, how do I make them wrap to the next line and/or display in the “Kitchen Sink” area?
- How to add ‘total’ value to custom column title on the posts list page
- Create Page Template by hook programatically in Functions.php in WP 5.8.1
- HTML and custom field variable, inside variable
- how to use force_filtered_html_on_import in add_filter?
- Filter Hook callback error, is it due to using $this inside a filter or something else?
- Run posts_where and posts_join only on the main query
- Disadvantage of using filters & hooks multiple times
- Get The Caller (Plugin / Theme / Core) For All actions & Hook in WordPress
- How to trim white space in search terms?
- Stripping URLs & Email from post submissions
- comment_for() Custom fields not visible when user is logged in
- I’ve set up an extra field for all the available widgets. How do I show it’s value in the front-end?
- Remove pretty photo style and script if not exist!
- BuddyPress – A hook available to hide custom born date on public profile view?
- Custom sort orderby question
- Hook to add content after date in post?
- How to add_filter only when content is not empty?
- filter out
- Filter template text
- WP Dashboard -> Posts-> Filter > BUG!
- How do I disable the warning “The backup of this post in your browser is different from the version below”?
- Custom excerpt_more filter not working when tag is present
- Taxonomy search filters
- NextGEN Gallery: Adding drop-down menu widget to gallery view without modifying plugin code [closed]
- Replacing text using add_filter
- Background color and background image below element in Contact Form 7 – error tip [closed]
- Change password reqts with NO plugin without breaking resetpass link?