There is no filter in PHP, so we have to use JavaScript:
add_action( 'admin_footer-index.php', 'wpse_82132_hide_rows' );
function wpse_82132_hide_rows()
{
$rows = array (
# 'posts',
# 'pages',
'cats', // meoww!
'tags',
# 'comments',
# 'b_approved',
# 'b-waiting',
# 'b-spam',
);
$find = '.' . join( ',.', $rows );
?>
<script>
jQuery( function( $ ) {
$("#dashboard_right_now").find('<?php echo $find; ?>').parent().addClass('hidden');
});
</script>
<?php
}
Result
To remove the widget completely:
add_action( 'wp_dashboard_setup', 'wpse_82132_remove_rn_dashboard' );
function wpse_82132_remove_rn_dashboard()
{
remove_meta_box( 'dashboard_right_now', 'dashboard', 'normal' );
}
Related Posts:
- Get all posts by post_author
- How to get post ID of the current page/post inside a widget?
- How To Disable (or Remove) “All Posts, Published, and Trash” in Dashboard Posts
- How to Arrange Posts by Size in the WordPress Dashboard?
- widget should display post archive by year and on click also by month
- Which file displays the date archive?
- Displaying a widget only on long posts (over X characters)
- How can I display widget in a Page or Post?
- Dashboard :10 Last draft page and 10 last pending review page (metabox)
- Ajax load more button in Recent posts widget
- I want to display custom text widgets for each post in the sidebar?
- WordPress’ ALL post count info on its dashboard does not match phpMyAdmin’s ALL post count!
- After database migration, posts not showing up in dashboard
- Develop Admin Panel Page
- How do you change the comment count in the back end posts list, to reflect unapproved comments, rather than all comments?
- Widget that shows categories with posts numbers
- Getting Duplicate Posts on Home Page with Widget Added Between Posts
- Display current post position in Elementor Posts widget
- Custom posts listing widget always returns 1 extra result
- Need to know custom code to display random and most viewed posts in wordpress posts and pages
- Load widget only on blog posts
- Widget to show posts in the sidebar basing on its IDs
- I want to add another search box on posts page in dashboard
- How to show multiple posts thumbnail, title and date in widget
- Move position in post list for a custom checkbox column
- Add checkbox in admin post list – show checked post in widget
- Create a List of Widgets, where each widget holds three attributes
- Custom Fields – How to get the list of a specific active widget each time it rendered
- How do i bring out post category name in my widget?
- How to view a post from the wordpress admin screen
- link to edit a post has empty target
- post__in no longer works in wordpress 5.0.3
- Very weird behaviour after removing WP pages
- How to display post excerpt beside post list inside Post of Dashboard
- Posts on Sidebar only
- Get from the dashboard the ID of the current post being edited
- How to test if user is filtering post list in dashboard
- Hide Admin posts & pages in Dashboard
- How do I create a ‘selection’ criteria list’ that will then dictate which posts are generated when the user presses search?
- Creating widget – ask for selecting a post in the admin panel
- How to display most popular posts from certain category in sidebar?
- Post List Widget with custom posts and editing the Read More Link
- Hide first blog post in content and output it in widget
- How to use in_category?
- Creating / Editing a post from within site template
- How to get override the WP Admin Syndication feed limit for a custom feed?
- How can to use the players from the Media Widgets in the body of a post to play audio and video files
- find view post hyperlink in PHP wordpress admin file
- How to have more post in a page than in your home page
- How to add a widget area between blog posts in Genesis Framework?
- wordpress pinboard theme [closed]
- Allow User Can See His Post on his dashboard
- How do I save JS classes being applied to the WP dashboard via custom plugin?
- WordPress shows a count of published items on the site, but the items are not appearing when you click on the “published” link
- Output number of WordPress posts remaining until a post milestone is reached
- Image inside the content is replaced with featured image from my older post
- Set Default Listing “View” in Admin
- How to add category to: ‘wp-admin/post-new.php’?
- How to publish a post with empty title and empty content?
- Change the Slug of Post Type post to baseurl/post/%postname%
- How to after saving or publishing a post redirect back to the original page
- Get user’s most published categories
- setup_postdata doesn`t seem ot be working
- Bulk update post slugs through database
- How To Remove Certain category Posts From the Blog Page
- How can I pass the ID of a post to a page template by clicking a url?
- How Can I Query a Specific Page From a MultiPage paginated Post
- Too many connections to server
- Whitelist Author of Private Post
- Custom Post Archive Page not working
- Can wordpress post and sidebar remain visible after scroll?
- How to switch wordpress post status between publish and schedule in MySQL?
- Query Posts by Custom Field
- Format latest/newest post differently
- Loop doesn’t exclude the specified category in home page
- is_page Funtion for Posts ?
- show posts under subcategory only when in that subcategory
- WordPress Loop: How to display recent posts in multiple divs
- When moving a WordPress installation to a new server, why do I have to update each post before content shows?
- Change Author Name to Sitename on Frontend
- Inserting Media to WordPress Posts
- Problem with trying to display subheader in posts
- Custom Post Type, post-formats associated to custom post type > 404 archives
- Add Text Domain To Post Navigation
- Change content off every sixth element
- Custom post type and taxonomy page templates
- What would causes search to return incorrect results?
- Pagination not give another posts
- Get post slug and match with menu item slug to change css
- Can’t find webpage on All Pages or All Post menus
- Display Specific Categories posts on the home page
- Code to display random ordered posts in Categories across pages [duplicate]
- Modify loop to include all post statuses not just ‘published’
- How to convert return type of ‘get_posts()’ same as ‘wp_get_recent_posts()’?
- Removing standard links in the posts page
- Multiple post back-to-back display only one gallery
- Auto selection of category based on subject line or TAG
- Single post pagination
- Imported Posts missing summary text on staging site
- WP_Query post_tilte search in posts table