Yes, there are several actions within that widget, including right_now_content_table_end
. Example:
function my_right_now() {
$num_widgets = wp_count_posts( 'widget' );
$num = number_format_i18n( $num_widgets->publish );
$text = _n( 'Widget', 'Widgets', $num_widgets->publish );
if ( current_user_can( 'edit_pages' ) ) {
$num = "<a href="https://wordpress.stackexchange.com/questions/5318/edit.php?post_type=widget">$num</a>";
$text = "<a href="https://wordpress.stackexchange.com/questions/5318/edit.php?post_type=widget">$text</a>";
}
echo '<tr>';
echo '<td class="first b b_pages">' . $num . '</td>';
echo '<td class="t pages">' . $text . '</td>';
echo '</tr>';
}
add_action( 'right_now_content_table_end', 'my_right_now' );
Related Posts:
- Possible to hide Custom Post Type UI/Menu from specific User Roles?
- WordPress dashboard, viewing CPT results in 504
- Displaying Custom Post Types In “At A Glance” Meta Box
- Show Custom Taxonomy Inside Custom Menu
- How to Make an admin_notices Message That Disappears Once the User Leaves That Particular Page?
- How to Change the Title of a Meta Box on a Specified Custom Post Type? [duplicate]
- Adding help information to custom post edit page
- Display only custom post type count for current author on the “At a Glance” dashboard widget
- How can I show some description in the “All Posts” view of a custom post type in Dashboard?
- Add custom post types stats to a custom dashboard widget
- Sending an email when a CPT is saved/updated (NOT when it’s created)
- How to redirect wp-admin/index.php to a custom post type?
- Separate comment section for post type in dashboard
- right_now_content_table_end function not working?
- Customize the Dashboard Menu Editor
- filter custom post type by meta key in dashboard
- Team club with CPTs and user registration + user dashboard
- Cluster CPT posts to users based on ACF value from their profile on dashboard
- List Custom Post Types in Admin Dashboard
- Add data to post edit page, when post is published
- Modifying Dashboard edit.php
- Adding link to dashboard sidebar, nested under custom post type
- allowing custom user role to access custom post type in wordpress admin
- Slow CPT in backend
- How can i redirect click to new admin page not to edit screen in post table
- Metabox collapsed by default
- Custom page for creating/editing custom post type
- Help Adding filter to Add Media button for custom post type
- Custom user roles
- Add role privileges of the custom post type
- creating different edit screens for different roles
- Change column of row action (Quick Edit) links in WP_List_Table
- Allow certain part of a page to be easily updated for client?
- How can I make a custom post type that loops pages in a new dashboard page, each single page is a new dashboard page (all within the back-end)?
- empty dashboard for custom role
- How to exclude a certain CPT from a snippet for Dashboard box?
- Pagination 404 on Index with custom query
- Add “Select All” to custom taxonomy
- post-per-page and offset not working
- Gravity forms multiple posts generated by one form [closed]
- Why are previous_post_link/next_post_link skipping some posts?
- Add tags to custom post type without menu link
- Display custom taxonomy on my custom post type
- List Categories (wp_terms) and count posts
- Post loop count is not in order
- Gravity forms how to display list of submitters on the post submitted page [closed]
- Add Previous/Next Buttons to CPT Single Pages Only
- Problem with $post_id object’s property
- get_post_types is not showing all registered posts
- How To Display A List Of CPT Posts In A Meta Box On Menus Page?
- Control content before and after custom post type loop
- Custom Post Types Archives and Single Pages not showing custom taxonomy data
- Custom post doesn’t show featured image
- Showing custom post type categories in the menu
- Displaying custom post types by category
- How to setup a single post page for my custom post type?
- Disable custom taxonomy on admin bar
- Conflict between Capabilities and Menu Visibility with Custom Post Types
- Custom Post not working as expected
- How to use a variable as a function name?
- What do the numbers mean at the end of add_action(‘save_post’)…?
- How to use next_posts_link/previous_posts_link for custom post types paginate?
- Getting WordPress Flexslider Item Number
- Designing a custom post type with a minimum number of meta fields
- Why does my taxonomy have a category style div id?
- Sorting posts by custom field value in array
- Custom post type paging 404 error
- Targeting categories in custom fields
- Display Only Certain Category In a Custom Page Template
- Saving Meta Data within Custom Post Type
- A meta box (in a custom post type) with two different type of fields
- Redirect to first child on Custom Post Type (without template)
- Assign CPT archive page attributes
- Move content between custom post types
- Custom post types problem
- How to get postname in custom page?
- Query custom post type based on post id and custom field value
- Pods CMS: How to add custom column to Adnvanced Content Type
- Custom post type, custom taxonomy, query posts only from taxonomy (children of)
- Creating Sections for Post Types
- Give each post type label a different color?
- page not found for single-type.php file
- Show list of custom posts with respective attachments?
- How to output an image or icon for selected check box in a custom post
- Check IF single OR multiple custom data has been entered
- Set a hard-coded page-template (post-type-archive) as home/front-page of my wordpress blog?
- How To Get Custom Post Type Category Title
- populate array with posts
- Displaying tags associated with posts in Custom Post Type
- Display custom posts randomly in custom taxonomy archive
- Using custom post type as taxonomy
- Transferring data to the end of a transaction with the Shopp Plugin
- Listing custom post types on archive page with array
- get_pagination not working on a custom post type query (using WP_Query)
- Show Posts to Author Only
- How to Make infinite loop of post
- Get custom post type categories to show up in menus
- WP_Query parameter conflict
- Create a comments template for custom post types
- Is it possible to add posts and images (auto resize) for custom post types with a script?