php - Strip quotation marks from Wordpress shortcode inserted by text area -
I've added a page shortcode to my WordPress admin through a custom texture, but the shortcode is used as text Wanted is wrapped in quotation marks, so it does not work.
This is basically My input: How do I get my input:
if (isset ($ input ['textarea_input']) $ new_input ['textarea_input'] = sanitize_text_field ($ input ['textarea_input']);
In this way I output it to the page:
do_shortcode nothing changed
< / Pre> My guess is that the Wordpress TinyMCE editor recognizes the shortcode, and its Because this is done through a hidden text field, it has just been seen as plain text.What does the TinyMCE editor do I am not doing? In your right way, Wordpress Editor Saves content through a filter called I wan't
. This filter is used to filter the contents of the post before it is received from the database and before printing on the screen. Apply this filter to emulate TinyMCE formatting. & lt ;? Php echo apply_filters ('the_content', $ options [textarea_input ']); ? & Gt;
Comments
Post a Comment