Here is one idea
add_filter('the_content','remove_stuff',99,1);
function remove_stuff($content){
$from=array("<p><script>","</script></p>");
$to=array("<script>","</script>");
$content=str_replace($from,$to,$content);
return $content;
}
Related Posts:
- Making Woocommerce optimized for more than 500k products
- How is construct function working even when variable is assigned null value?
- Single_template for a custom post type created from a plugin is returning an empty page
- How to retrieve custom profile fields associated with different users
- Add a new tag based on the category name in the publish event
- WordPress filter custom posts by multi terms of of a taxonomy
- WordPress function is not called and ajax return 0
- Cannot save settings value
- Displaying Custom Post Meta
- foreach argument to get specific file types getting too many returns
- Is it possible to modify an Elated plugin portfolio-list template in such a way that it will not conflict with future plugin updates?
- How to embed or integrated a custom WordPress Widget into the theme?
- Experts opinions needed: How (in)secure is this approach?
- get_comment_meta() for a filter hook in a plugin
- Making adding info to an overlay bio easy for average user?
- Post Pagination does not working on WP-Query
- form does not generate $_POST request
- Select field value not returned after saving changes
- WP Query Relations / Compare
- How to fetch the post content from the wordpress editor before it can be saved(published)?
- add_option_{$option} action hook not being called
- How to destroy or dispose wordpress uploder/manager?
- pull data from wordpress database
- Remove all capabilities in separate method fails versus included in method
- Moving the “share” button
- Publish, Save Draft and Preview buttons do not work after being moved with jQuery
- What is the “best” way to update a theme via a plugin?
- Is there a an option to modify the post content directly on the browser instead of having it reflected on browser by modifying in the database?
- Implementing Select2 plugin into WordPress
- Dedicated server and WPDB Class : huge slow-down of the website
- WordPress mails being sent from @locahost and being rejected
- How to implement pagination into a wpdb->result query?
- Plugin MySQL SELECT custom data and filter on user meta
- Problem to return more than single line captions
- Unable to show a message after plugin activation
- How to display archive by selecting year and then selecting month
- Plugins and how to assign urls to content
- Unable to link CSS file
- Upload images to custom database table in admin backend
- redux framework: add custom css to the output css
- How to get an array out of a nav menu if it’s a plugin?
- Ajax call not working with
- How to CRUD from wordpress database in wordpress theme?
- Ajax functionality not being called under wordpress plugin
- Define a url for an email confirmation from within a plugin
- Is there better way to do this without duplicating queries?
- WordPress Search Form with Keyword Suggestion
- How to create a simple plugin which show/hide an html code in wordpress?
- plugin modal/popup integration best practice
- How can I query 3 posts from diferente categories (one of each category)
- Problem with baseurl and interaction with plugin
- Which filter to use to pre-parse form elements, which are generated by plugin’s shortcode?
- Why setcookie function redirecting to home page in wordpress?
- How to Disable Content Warning Dialog for Logged in users
- Widget won’t be activated
- Remove from a div by class name from post page if post author role is not administrator
- Pull commentdata for pre_comment_on_post from comment_post_ID
- Upgrade routine: Interaction with user confirmation
- How to display properly exception or echo string after posting in plugin?
- Function not working on any file other than the main plugin file
- Pluigin Migration – I need to move a single plugin to a different website
- Building WordPress Themes With Bootstrap with Adi Purdila → TutsPlus
- Load textdomain from global languages directory
- Woocommerce Custom Checkout
- Allow user to change homepage
- Dynamic sidebar areas not working on the Theme Customizer
- Login using /wp-admin doesn’t redirect back to /wp-admin
- Convert each new line in the textfield as a new value in an array
- sql query not working in wp plugin
- Navigate to external link if last page or post in a category
- Custom signature appears twice on page
- $wpdb Mysql trigger problem
- Query only title/field/featured media of posts [closed]
- wp_enqueue_style don’t register all google fonts
- Displaying settings information in a table
- API WordPress is Limited? Return False
- Caption Shortcode: what filter to change the image size?
- How to return a blank page
- Looping single post in a theme
- WP API users per page
- Array/List Edit in Backend
- WP Ajax on page load not working on bluehost but was working on Godaddy
- How to Modify My Plugin’s Admin Settings so that the Plugin can be Added to a Specific Page?
- Plugin options page: grouping checkboxes
- Confusing $tag specification for apply_filters call, in core options.php code
- Callback function quicktags that uses variable in start tag
- Fullwidth slider using background image Flexslider WordPress
- Font Awesome stopped showing icons, shows &# text instead [closed]
- How does one set cookies in WordPress without getting the ‘headers not sent’ error? within WP
- Delete Query executing regardless of WHERE Clause condition
- Return value of $wpdb->update() query in plugin is wrong
- WordPress Plugin Tool Tip Helpers
- Page template compatibility with different themes
- Does WordPress have something like timer hook?
- How can I add the Post ID to Class Name in Jquery?
- How to show metabox just in post.php in admin?
- Same header/footer in Admin, across all network sites in multisite
- How to change the wording of front-end `next article` for custom type registered in a plug-in?
- Get (eventual) permalink from post within Edit Post in Admin panel
- Ajax not working to insert, query and result data