Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The problem, from what I can see in put.php in the Post UI Tabs plugin is that the shortcodes are only added during the "the_content" filter in a function called "on_the_content".</p> <pre><code>add_filter( 'the_content', array( $this, 'on_the_content' ), 7 ); // Priority 7 - before wpautop </code></pre> <p>(line 96 of put.php)</p> <p>And that function looks like:</p> <pre><code> public function on_the_content( $content ) { $this-&gt;has_tabs = (bool) apply_filters( 'put_decide_has_tabs', $this-&gt;has_tabs ); if( !$this-&gt;has_tabs ) return $content; global $shortcode_tags; // Backup current registered shortcodes and clear them all out $orig_shortcode_tags = $shortcode_tags; $shortcode_tags = array(); add_shortcode( 'tab', array( $this, 'on_tab_shortcode' ) ); add_shortcode( 'end_tabset', array( $this, 'on_tab_end_shortcode' ) ); // Do the shortcode(only the tab shortcode is registered at this point) $content = do_shortcode( $content ); // Put the original shortcodes back $shortcode_tags = $orig_shortcode_tags; return $content; } </code></pre> <p>(starting at line 118 of put.php)</p> <p>So, given how this plugin is written by modifying the content with a filter which in turn adds the shortcodes when that filter is run, what you're seeing is probably happening because when you call "do_shortcode" those shortcodes don't actually exist. </p> <p>What echoing do_shortcode is doing then, is just coughing up the text.</p> <p>Unfortunately, because of the way the Post UI Tabs plugin is written, you may not be able to do what you're trying to do.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload