Admin – Dashboard – Unset recent comments

The recent comments list is part of the Activity Dashboard Widget. Approach #1 We could remove that dashboard widget and then add our modified version of it: /** * Remove the latest comments from the Activity dashboard widget (approach #1) */ add_action( ‘wp_dashboard_setup’, function() { // Remove the Activity widget remove_meta_box( ‘dashboard_activity’, ‘dashboard’, ‘normal’ ); … Read more

WordPress Dashboard Problem [closed]

Do you talk about WordPress.com or independent installation of WordPress.org on your server? These are two different things and your question confused because you mentioned that you have your own hosting also. For WordPress.com, contact their support. They should help you with this if you configured your domain there. If you installed WordPress.org independently on … Read more

How to test if user is filtering post list in dashboard

I have found a solution, using $query->get(‘cat’): when restricted users select “all categories” $query->get(‘cat’) will return ‘0’, so in this case I will apply filtering, otherwise my code won’t run, allowing user-selected filter (in a restricted range) to be applied /********** post & media lists filtered by user role & category **************** function posts_for_current_role($query) { … Read more

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