Add a priority to push your function to the end of the hook queue.
add_action('the_content', 'my_plugin_content_hook', 1000);
Then, in your get_special_content
function you will need to apply wpautop
manually to the content to which you want it applied.
function get_special_content()
{
$text="";
$autopeed = 'content to autop';
$text .= apply_filters('wpautop',$autopeed);
$text .= "your textarea code";
return $text;
}
I believe that will solve your problem.
Related Posts:
- New method to disable wpautop after WP 4.3?
- How to automatically add paragraph tags in the Visual Editor
- Disable wpautop, keep line breaks
- How to call a PHP function in WordPress when you click on a button?
- get wpautop to not wrap tags but only text
- remove_filter( ‘the_content’, ‘wpautop’ ); is not working for me
- Remove p tags in wordpress posts
- WordPress remove filter wpautop not working
- remove and then add wpautop
- Possible to disable autop temporarily?
- How do I format my custom html so wpautop won’t try to reformat it?
- Stripping wp_link_pages?
- How to disable auto-p in WordPress?
- remove empty paragraphs from the_content?
- Switch between Visual and HTML tab freely
- No filter of code on switch from html to visual editor, how?
- Remove wpautop from shortcode content / remove whitespace in buffering
- Stop editor from removing tags and replacing them with nbsp
- How to enable wpautop for XMLRPC content
- Is there un-wp_autop function?
- Numbering sections and block-level elements in wpautop(); WordPress as CMS for long-form writing;
- How to enable the tag in WordPress posts and pages
- Shortcode from a widget is wrapped in unwanted element
- wp_editor not adding paragraphs despite wpautop being set to true
- Add filter ‘wpautop’ to meta box textarea
- Creating a table from shortcode avoiding wpautop for each row
- wpautop() when shortcode attributes are on new lines break args array
- How do I stop HTML entities in a custom meta box from being un-htmlentitied?
- Format content value from DB outside of WordPress filters
- Why does WP not like my container?
- How to add text to comment form #content textarea?
- Formatting ?
- Is shortcode_unautop() broken?
- How to stop wordpress from mangling HTML in a metabox textarea
- WooCommerce Description and Short Description tags removal
- What is wrong with this code I have to make a blockquote shortcode
- Raw output (preventing wpautop)
- WordPress blockquote removes “ tag
- WordPress editor strips out anchor tags when they appear on their own line
- Remove empty p-Tags in Shortcode content before non p-Tags
- How do I disable wpautop for a specific block?
- Alternative to esc_textarea
- Remove wpautop from specific shortcodes only
- basic shortcode – Why 1st paragraph not wrapped in p tag, but 2nd is
- WordPress stripping out BR tags, need assistance
- Removing unneccessary p-tags (Not every p)
- Convert textarea with wp_editor
- Extra paragraph tags in an enclosing shortcode
- Selectively remove empty line after line change
- tag breaks shortcode output (other solutions don’t work)
- How to remove p tags around img and iframe tags in the acf wysiwyg field
- WYSIWYG eating up first p in td
- WordPress wpautop/shortcode generating invalid markup
- Removing “wpautop” (auto tags) only on certain pages?
- wpautop is not working when displaying content saved using wp_editor in a custom meta box
- Removing line breaks when in text view with wp_editor
- TinyMCE strips breaks inside editor
- Make WP not format code, not insert line breaks in between tags
- Wrap Shortcodes and wpautop
- wpautop on section
- Removing tags around tags
- sanitize vimeo embed code?
- TinyMCE – no auto formatting using the_editor()?
- Shortcodes within the sidebar text/html widget: How to preserve the raw HTML output of the shortcode?
- Images that copy code to clipboard when you click on them
- Sanitizing textarea for wp_insert_post with TinyMCE enabled or disabled
- Is it a good practice to disable wpautop for premium themes?
- Custom JS text area in customizer is being formatted wrong in document
- If is_single in functions.php
- Character \ appearing before ‘ after saving a settings page
- Strip from or something better?
- Cannot stop wpautop from messing up my plug-in output
- Line Breaks are stripped off when direction property is found
- CSS properties in textarea in the Customizer
- Disable wpautop on Shortcode attributes
- WordPress not saving tags for custom taxonomy term description
- Understanding automatic text formatting in the WordPress editor
- wpautop filter off for pages but on for posts
- Keep br tags from stripping
- Prevent Black Studio TinyMCE from adding tags when switching from Visual to HTML mode
- How do I remove p tag *insertions*? Disabling `wpautop` removes manual tags
- ACF Shortcode bringing in my shortcode is adding unnecessary line breaks
- Inline style appears in the editor but breaks on live site
- Custom Field add markup to line breaks
- Remove some tags from shortcodes output? Trying to fix autop
- Cannot get tags working from a WPAlchemy metabox with wp_editor()
- Wpautop stops working after get_the_excerpt
- Replacing & in JS code on pages
- Can I prevent wordpress adding and tags to autoembeds