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()
- How do I Enqueue styles/scripts on Certain /wp-admin Pages?
- How to remove admin menu pages inserted by plugins?
- adding custom stylesheet to wp-admin
- Changing the Order of Admin Menu Sections?
- How to order by post meta name in wp admin?
- How set defaults on wpLink()
- Remove dashboard, use Pages tab as default
- “leftover” notifications left on ever admin screen?
- Resize Admin Featured Image Thumbnail in CPT Edit Screen
- How to Use Resposive Tables in WordPress ADMIN Pages?
- Registering jQuery kills admin functions
- Adding HTML/Text to Top of Subscriber’s Profile Backend Page
- WordPress address URL keeps dropping the www
- Add ‘Last Modified’ and Attachments (Yes/No) to WordPress Users Column
- Where can I find admin-header.php file online?
- Is it possible to create two different wp-admins for a wp website
- Customizing Users in Admin Area
- blocking the admin section (but still using admin-ajax.php)
- What do I need for testing a single script in admin
- Wp-Admin extremely slow!
- When i try to open Localhost/wordpress/wp-admin . An Error appears ” Registration Has been Disabled” . No login page is shown in the browser
- admin_post_nopriv_{$action} is secure?
- Form input values are empty after submit
- Editing the term_order field
- Why does wordpress and my site create a downloadable file instead of allowing me to login?
- wp.media – drag&drop overlay stuck
- How to display status messages in admin panel
- I cannot go to http://novathon.cloud.reply.eu/wp-admin – always redirected to /wp-login
- Is there ever a legitimate reason for an outsider to access wp-admin
- PHP Fatal error: Uncaught Error: Cannot unset string offsets when trying to upload any file to media library
- Wp doesn’t save meta box data