Set your WordPress to a RTL language, then use the following code in functions.php or as the plugin:
<?php
add_filter( 'locale', 'my_set_admin_locale' );
function my_set_admin_locale( $locale ) {
// check if you are in the Admin area
if( is_admin() ) {
// set LTR locale
$locale="en_US";
}
return( $locale );
}
Or otherwise, set WordPress to LTR and set front-end to RTL:
if( ! is_admin() ) { // not admin area
// set RTL locale
$locale="ar";
}
Related Posts:
- Organizing Code in your WordPress Theme's functions.php File?
- Can’t change language (only “English (United States)”)
- Admin Page Redirect
- Disable dragging of meta boxes?
- How to remove screen options and help links in the admin area?
- Sort admin menu items
- How can I uninstall a language?
- How to Layer 7 Load Balance WordPress Backend and Frontend?
- Custom column for changing post status via ajax
- Make fonts.com font work in TinyMCE (iframe referrer issue)
- How to remove items from +New admin menu?
- Is there any filter to disable the total fronted in WordPress
- Make sub menu items a main link in the admin menu using fuctions.php
- Add column to pages table
- Admin account only shows Profile and Dashboard with no activity
- Can initial focus be set to search field in WordPress Media Library?
- wp-admin – save options without refreshing?
- WordPress Error establishing a database connection For Admin login only
- How do you modify CSS files via admin panel?
- WordPress admin not changing language
- How to prevent parent admin page from appearring as a child admin page
- How to use Yoast SEO backend in english even if WPLANG variable is not english?
- Change WP-Login or WP-Admin
- SSL Partially breaking admin panel and elementor
- Why are my frontend theme styles bleeding into the backend?
- What is the practical difference between is_admin() and is_blog_admin()?
- How do I set the homepage to the WordPress Admin Dashboard login?
- Create a admin page in wordpress without admin menus (“wordpress sidebars”)
- How to hide wordpress default description box?
- Adding text in more than one language (at the same time)
- I want to disable login of admin (/wp-admin) with email and make it accessible only with username
- Allow administrators to pick post author on custom post type edit screen
- Add column to pages table
- What are the requirements to make the admin toolbar show up on the front end
- Remove bulk option row
- Admin menu in front-end
- How to replace “Password Protected” text with icon in Admin
- Hooks: admin_footer and admin_print_footer_scripts not working?
- Can’t access wp-admin, redirects to http://%24domain/wp-admin/
- What is the correct way to get only display plugin for Administrator Only
- Admin top level menu, pointing to an external url
- Browse Happy in 3.2
- How to break line / add to ADMIN menu
- External HTTP API calls slowing down WordPress admin [closed]
- Outputting something based on the presence of post variable in admin screens
- Creating custom admin panel pages without making a plugin?
- Dashboard : remove Safari navigator message
- Available resources for learning WordPress 4.7.2 from the ground up?
- Uncaught SyntaxError: Unexpected Token Illegal
- Newly created user role not displaying on users screen
- WordPress Admin extremely slow when other admin logged in
- WordPress Admin Panel Left Sidebar No showing on Post create page
- Accessing wordpress tool in local MAMP Site
- How to remove Google fonts from wp-admin (Roboto) added by core
- How to Fix WordPress Not Saving Settings?
- Trying to login to my site redirects me to the first page
- Admin Login Checks
- Failed to load resource: the server responded with a status of 431 ()
- When installing wordpress through WP CLI mysite.com/admin not working
- Trying to list user and post information from (wp_includes/post.php ) causes Fatal error
- Localhost install: Administrator lost administrator access; cannot access Dashboard
- is_admin() conditional statement
- Admin Login page not working at all
- plugin: ‘init’ hook, check if we’re not in admin
- Is it possible to tell if a user is logged into WordPress from looking at the cookies which are set?
- Why when I click on a link into the WP admin panel I am redirected to a link that doesn’t contains wp-admin prefix, so I obtain 404 error
- Override WordPress Core File?
- How to make the Panel // WP-Admin lighter via Mobile
- Redirect users based on their roles, is_admin()
- When moving a WP site, why does wp-admin redirect to old site?
- How can I make my Admin Icon SVG color correctly? [closed]
- How to wrap admin menus and menu headers in additional divs without modifying the WordPress core?
- WordPress 3.8 get current admin color scheme
- remove_action with profile_personal_options
- In the WordPress admin, how can I find out which page (themes.php, widgets.php, etc.) I’m on?
- Reusable content block
- How To Differentiate Drafted product and Publish Product through Color?
- WP admin page gives 404
- How to prevent the editor from redirecting to website within iframe?
- wp-admin throwing 500 errors after update to 4.2.1
- get_current_screen and the WP_Screen class
- How login is possible, if I deny login page via .htaccess with allow ip
- jQuery UI Datepicker error
- Can’t connect to WP-Admin, blank error message
- How can I put content before my custom post type default pages?
- How we can create menu from Appearance > Menu and use as a add-submenu-page for admin menu?
- How do I fix the 403 error for wp-admin/admin-ajax.php?
- Unable to Add User after Site Migration
- WordPress User profile page fields missing
- Trying to use and understand JSON API and get_posts
- Help please i cant login to wordpress panel [closed]
- Extend user search in the Wp backend area on the users.php page to allow for searching by email domain and role from the “users search” input box
- Cannot Access wp-admin
- wp-admin is opening but the site isn’t opening
- Can’t Access Wp-admin Login Page I get 500 error
- Unable to login or reset password via wp-admin
- Fresh Install – WP6 – Sorry, you are not allowed to access this page
- Display Custom Text if date_picker date is expired
- admin showing Array() after adding exit() code
- How to prevent a user from updating other users in WordPress?