Are you sure editor use <i>
for italics? I’m almost sure it uses <em>
.
However, if you want to be absolutely sure there are no <i>
in your post content, let editor do what it want and then replace <i>
with <em>
before creating/updating posts, hooking wp_insert_post_data
filter, just like:
add_filter('wp_insert_post_data','replace_em', 20, 1);
function replace_em( $post_data ) {
if ( $post_data['post_content'] != '' ) {
$post_data['post_content'] = str_ireplace( array('<i>', '</i>'), array('<em>', '</em>'), $post_data['post_content'] );
}
return $post_data;
}
Even if you insert <i>
manually, they are replaced with <em>
on saving.
Related Posts:
- Hide content-box on specific pages (in admin)?
- how to know if admin is in edit page or post [duplicate]
- Admin: very slow edit page caused by core meta query
- Editor Styles and Typekit
- WordPress admin screen very slow / timing out when editing or adding a new page/custom post
- How to retain HTML5 Attributes on Markup
- Disable HTML (Text) Tab in Post Editor
- How to restrict the editors from viewing/editing pages created by admin?
- How to set default editor tab
- Make the Status, Visibility, or Date fields opened by default in the Publish box
- How do you set up a WordPress blog with multiple authors to allow something like StackExchange’s “community wiki” feature?
- Editors change a permalink on an unpublished post, but only admins change a permalink on a post that has ever been published?
- Post editor is 89953px tall. How to fix?
- Gutenberg UI has changed
- Can I retrieve Published changes when changes have been Saved but not Published in WordPress Semplice?
- How to retain HTML5 Attributes on Markup
- Disabling “View” mentions from backend?
- TinyMCE buttons broken
- Remove “minor-publishing” div from Publish admin metabox
- WordPress 4.5 Inline Link Toolbar not working on custom wp_editor instance
- What Role to assign remote site developer?
- CSS Styles specific to Admin Sidebar not loading
- How to Change the Default Home Page for the WordPress Dashboard?
- is_admin() returns true when using admin-ajax.php from front end script
- How do I optimize a custom post type admin page with 25,000 posts?
- Does wordpress create activity, update logs?
- How-to make the admin area mobile friendly [closed]
- 3.3: How do you hide the new dashboard welcome panel?
- Should I use is_admin() inside ‘admin_init’ hook callback
- Disable the post save process completely
- How can we customize the logo and some text on the welcome screen?
- Appearance->Editor not visible
- Custom WP_List_Table displays blank rows
- Remove post from new menu in top bar
- Enqueue jQuery UI Tabs In Admin Area
- Pagination Error on Admin (You do not have sufficient permissions)
- How to Use Resposive Tables in WordPress ADMIN Pages?
- WordPress redirects me to homepage after page update in admin section
- how to display “Edit | Quick Edit | Trash | View” in custom WP_List_Table column?
- How to publish page that can’t be detected by search engines?
- Custom taxonomy admin page
- How can I activate Collapse Menu in WordPress?
- Help extending custom drag-drop page ordering on admin page list screen
- How do I enable new account notification emails (to the administrator)?
- Change the Default Pages Menu View in wp-admin
- In administration, how do I display comments of a certain user?
- New users must comment when requesting username
- WordPress stripping html and script tags from some admin users on save
- Why are my styles being applied to the admin area?
- Disable WP Editor for specific page templates
- How to change admin menu position of “Media”?
- How to disable automatic excerpt generation *in admin*?
- Associating custom submenu item with post type of top level menu item
- wp_schedule_event only when admin is visited
- Two admins in Users and one in the database?
- Single category’s posts list in admin menu
- Editing the Backend Uploader
- Hide Pages on Edit Pages based on Capability (edit_others_pages)?
- Using shared SSL for login/admin
- How to add custom classes to admin list table default rows or columns?
- How to hide a specific part of dashboard for non-admin roles?
- Get a listing of portfolio items and categories
- WordPress Remove Submenus
- Continuous Login Sessions For Super Admins Across Multi-Site Network of Sites
- page not updating with database
- Client system for media review?
- Seems that admin_post_{action} does not executing
- If statement for admin page
- Customizing WordPress Admin – How to Change the Avatar size
- Accessing variable from admin panel?
- How to pass multiple parameter in add_action()
- Add term of current custom post type to admin body class using admin_body_class
- Changing admin user id for database
- Limiting Admin Backend Search to Title
- Does deleting the table users prevent all logins?
- Include script files for admin submenu page
- Restrict access to admin
- Wp ajax not working from “current_screen” admin hook
- solution to prevent specific admins from altering site contents
- WordPress Admin very slow
- Prevent users in the backend from seeing WP/Plugin notifications and update annoucements?
- Want to know who is login Admin/User
- Show all admin menus in a table
- Where is the User’s Admin Bar Preference stored? I want it to default to off for new users
- When admin approves a registered user, I don’t want to send a notification email to users
- add instructions to upload pages and / or forms
- Populate Dropdwon with DIR files, save value and keep it “selected”
- Signed-in as admin on just part of the site
- How to update my website with WordPress?
- WordPress login process is hanging
- Blank page beyond dashboard
- Cannot save Post
- Shortcut to widget/sidebar editing on the admin menu?
- Disable wp-admin log on lightbox overlay
- Add a link to the Admin menu
- I don’t have permission to save the theme options I created myself?
- Different customer login form than administrator login form?
- Add custom css class to wp-list-table row for custom post type
- Custom column with post ID not working in CPT
- Modify ‘the_content’ appearance in the admin area