Both initial creation and updates for the posts pass through wp_insert_post_data
(among other filters). You can modify post_content
item in array passed to make the replacement you need, before it proceeds on to be saved in database.
Update Code pasted from comments
add_filter( 'wp_insert_post_data', 'rm_wp_insert_post_data', '99', 2 );
function rm_wp_insert_post_data ( $data , $postarr ) {
return str_replace("\xc2\xa0", " ", $data);
}
Related Posts:
- Remove inline linking tool
- How to enable the tag in WordPress posts and pages
- How To Hide The Visual And Html Editor Completely?
- Visual editor keeps stripping my tags
- Edit page blank, control buttons missing
- In context click and edit: is it feasible?
- Notion-like editing and layout with a convenient freeform collaborative editor in WordPress? [closed]
- How to show the contants in front end same as visual editor with space / linebreak?
- Block editor: content resets to the previous state in “Edit as HTML” by clicking somewhere outside of the editing window
- How to hide the Text Color icon from Visual Editor of WordPress Post Editor from Users other than Admins?
- How do I prevent WordPress from eating my code?
- Post/Page editor loads twice
-   when I use ENTER for skipping line
- Custom code in all text between ?
- Disable html in custom post types
- how to fix a broken visual editor
- How do you change the visual editor’s background color?
- How to get back distraction-free mode we had before WP 4.1?
- How to replace the content of tinyMCE editor in both text and visual mode using jQuery?
- WordPress Editor not getting youtube video preview
- Visual editor not showing up
- Visual Editor Missing, Server-Side Problem, How Would You Debug It?
- Resizing the width of the WYSIWYG editor
- Remove path from the create/edit a post view
- WordPress shortcut to switch from Visual to Text mode and vice versa
- How to enable user_can_rich_edit for guests?
- How to make WordPress and TinyMCE accept tags wrapping block-level elements as allowed in HTML5?
- Lost formatting after saving
- How avoid WP editor to change by
- tinyMCE duplicates previous block element when pressing return (visual editor)
- Visual Editor Background
- Hide content editor for posts after approriate date
- WMP Plugin not showing up in the plugin panel?
- Added custom styles to Visual Editor. Classes are appended and not replaced as intended
- Visual Editor gone
- Preserving tabs and line breaks in when switching from HTML to Visual Editor
- How to reset display of WYSIWYG editor
- How to display php source code inside a post using visual editor?
- How to get Text Selection in WordPress Editor
- Limiting allowed html elements/strip harmful scripts from editor
- How can I determine what mode the editor is in and when it changes?
- Editor background colour in full screen
- Disable pasting of images into wordpress editor
- Why the post content editor always expanded?
- Visual/Text tabs in wp editor Not Showing
- Remove inline styles from the_content?
- Dynamically add CSS to the visual editor
- How to Add Custom Button to Text(HTML) Editor and NOT Visual Editor
- Inline Style attribute getting stripped off
- WordPress Visual Mode Not Working – adding span code while clicking
- Adding a button to the attachment page
- How to remove from hr in wordpress visual editor
- Change syntax styling of TinyMCE HTML Text Editor
- Automatically adds check on hide title and add paragraph when adding text
- WP as an HTML editor
- How to display shorter version of wp_editor?
- Define add_editor_style to specific post types?
- disable tags on wordpress text editor
- Want the visual style in wordpress
- How to remove some options in visual editor?
- Automatically replace   with space
- how can default_content filter tell if content will load in block editor or classic editor?
- Can I still use Visual Composer Website Builder after upgrading to WordPress 5.0?
- Visual composer causing conflict with TinyMCE [closed]
- How to make shortcode which returns HTML?
- Add class to oEmbed video from within post editor?
- Why is tinymce visual editor showing the background from my theme
- Edit box scrolls back to the top after updating post
- Line breaks changing to when switching between HTML and Visual tab!
- How to determine if a post was last edited in the Visual Editor
- qTranslate 2.5.28 and WordPress 3.3.1 issues [closed]
- How to add TinyMCE to a front-end textarea?
- Adding a Media Button to the WordPress Content Editor
- ✓ Checkmark Character Encoding Issue In WordPress Editor
- Visual and Text tabs missing from Editor
- How can I add a stylesheet to the Classic Editor page?
- How to adjust text’s width and put it at center of post (Visual) editor?
- Hide default values on VC editor
- Why Is Content Entered In Classic Editor Not Displaying on Page?
- WordPress visual composer backend editor not showing
- Gutenberg Block empty after reload of editor
- Add word hints in WordPress post editor
- How to restore visual editor in WordPress
- Editors can’t edit but administrators can
- Cannot read property ‘hasClass’ of undefined(…) jquery-ui
- How to paste source code from IDE to posts directly?
- RTE always on text mode by default
- Extending the “Add Media”-Dialog … how do I finally insert something to the Post?
- Publishing VS2010 Web Solution to WordPress
- What does the “Show Images” do for WordPress music playlist?
- When I click edit on a post, all the content disappear. Does anyone know how to fix this?
- Visual Editor not working when Jetpack plugin is active
- Visual editor in comments with custom buttons
- insert link in wordpress editor greyout whole screen?
- WP 3.3 update disabled editor stylesheet? Or TinyMCE Advanced problem?
- How can I fix the Insert/Edit link button in the Visual Editor in WordPress 3.9.1
- How do I use Mac Keyboard Icons in WordPress
- Cafe Food Menu upload
- Visual Composer – not working after update [closed]
- WPBakery Editor dropdown hidden behind editor [closed]