How to make the front-end RTL without changing the admin panel language?

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 … Read more

Add count for new registered user in Users tab

Yes, there is. You can use admin_menu hook to loop through menu items and add span with notification. There are two classes that WP uses for these notifications update-plugins and awaiting-mod. The second one looks more appropriate in this case, I guess… Here’s some code: function add_user_menu_notification() { global $menu; $user_count = count_users(); // get … Read more

How to add Bootstrap Tour JavaScript to WordPress Admin Panel Dashboard Widget

Step-1 → Download: Download the necessary CSS / JS files for Bootstrap Tour in your theme’s directory. Step-2 → Tour setup script: Follow the instructions from bootstraptour for the Tour setup script. For example, the following script will load the Tour on the main WordPress Admin Panel Dashboard (on page load) and show the tour … Read more

Add Featured image column into wordpress admin on pages AND posts

The reason you’re getting an error is because you’ve got multiple functions with the same name. You have two functions called add_img_column() and two called manage_img_column(). You can’t have two functions with the same name in PHP. You don’t even need two functions though. You can hook the same function into multiple hooks. So this … Read more

Admin account locked out/redirect loop. Other accounts work?

Actually figured out what was wrong. Somehow my user permission was none. Then I change it to admin, still no luck…then realise it didn’t change because there was no “nickname” set. So basically just logged into another admin account and gave my account admin status. Would love to know what caused it though.