Set admin body to ltr on a rtl installation

Important: You shouldn’t modify core files, because you might loose all your edits in the next core upgrade. You should instead enqueue your own stylesheet with your custom CSS modifications through the admin_enqueue_scripts hook or use a hook like admin_head to implement your customization. Here’s an example: /** * Force #wpbody to the ‘ltr’ direction: … Read more

Admin doesn’t have sufficient permissions to plugin’s page

According to the documentation for add_menu_page: Note: If you’re running into the “You do not have sufficient permissions to access this page” error, then you’ve hooked too early. The hook you should use is admin_menu. This means you need to wrap your menu creation in something like: add_action( ‘admin_menu’, function() { add_menu_page( // page title … Read more

Manage users custom column add class “num”

The solution is simple. Add the word num when defining the column like this: // Add users table header columns add_filter( ‘manage_users_columns’, ‘gtp_users_table_columns’ ); function gtp_users_table_columns( $defaults ) { $defaults[‘purchased-leads num’] = __( ‘Purchased leads’, ‘gtp_translate’ ); return $defaults; } // Add users table lead purchase column content add_action( ‘manage_users_custom_column’, ‘gtp_users_table_content’, 10, 3 ); function … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)