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
- How to display blog posts per category using tabs or accordion?
- Filter out posts based on a certain post_meta on the WordPress REST API
- Creating a redirect option for current page url
- How to associate a custom taxonomy to a post multiple times
- Return records between two meta datetimes saved as strings
- Post date automatically +100 years into the future
- Display Current Posts Category (with the most posts)?
- How can I add random alphabets in wordpress permalink posts structure
- How to display the post categories for each post inside the loop with custom format?
- Allow / show post comments in category pages
- AWS usage queries
- Optimal WP Web App Backend for mobile app development
- Change permalinks for posts & for custom post types
- Indenting within a blockquote
- WP_Query get posts in custom database table [duplicate]
- How to save template data into wp_post table (post_content column)
- Bulk update published posts date randomly using wp-cli?
- WP query taxonomy optimization
- Add static text to post URLs
- Display a specific category in a focused area of my site
- Post in bulk based on category template
- can’t modify post title using the_posts filter
- How to prevent to create same url of post, if the previous was deleted?
- Delete Post but retain image of post [WP REST API]
- Pull in posts using post meta for REST API
- Mailing list submission from a post that doesn’t have a form on it
- How Do I Redirect WordPress Pages but not posts?
- Show Last Revision Of Post That Has A Published Status On Single Page
- Override WordPress core post-template.php block template
- How to select a category automatically based on a word in WordPress post title?
- How to remove the ManageBlocksMenuItem in the ToolsMoreMenuGroup in the Gutenberg Editor?
- How to make ajax load posts from the current category?
- WordPress – When visiting a `single post/ single.php` my category menu item link becomes active
- Different background colors for posts with WordPress
- Get other posts sharing the same meta values
- How can I restore posts from ‘trash’ with their previous post_status? – WordPress
- Rest API Paginate until all posts are imported
- why my urdu text is not aligned properly when written in wordpress blog post?
- Format array of objects to json for wp-json
- Remove all external links from posts
- I need to create “View Profile” and “Edit Profile” links by incorporating the Post Title/ID, but can’t seem to manage it
- Turn off display for custom sidebar post widget when on the post it’s displaying
- ACF flexible content block not showing on live site (works locally)
- Only the most recent post is showing on my category page (working on localhost, not live site)