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?
- Query by post title
- Marking future dated post as published
- Fetch All Posts (Including Those Using a Custom Post Type) With WordPress API
- List page for custom post type?
- Sort Order for a Custom Query in a Post Type Archive Not Working
- add_rewrite_rule and custom variable
- How to hook get_terms() to only show count of posts that have custom meta
- how do I display a featured image in a post type?
- How can I combine posts of different types in one hierarchy?
- WordPress monthly archive links result in 404
- How i add new link after Edit | Quick Edit | Trash | View in quick edit section
- wp is not defined error using wp.media to create a custom image uploader
- Custom taxonomy template not working with simple loop. Multiple CPT using the same taxonomy
- Is there a way to list posts of only a certain category
- Remove header and footer but KEEP all css and js etc for a custom post template?
- How loop through posts based on custom fields
- Gutenberg Featured-Image-panel missing when user with custom role edits Custom Post Type
- Need post_type_archive_title function but in ‘single’
- Remove fields on media uploader for custom page type – not working for “From Computer” or “From Url” tabs?
- Using My-Meta-Box-Class plugin, how is ‘Date’ value stored?
- List children on child post
- Multiple TinyMCE editors in dynamically generated textareas
- How can I set taxonomy programmatically
- Return the latest post from a custom Taxonomy and Post Type
- Full Custom Post Type List Organised by two Taxonomies
- Filter custom posts by multiple taxonomies
- dropdowboxes with pre-selected custom fields optios that filters the results according seach needs
- Meta-Boxes for CustomPostType cause PHP Errors and Notices in “Add New” view
- How can I add a custom field to an existing custom post type?
- Help With Warning on creating new Post types?
- Display Repeatable Meta Box Content
- Add tags to custom post type without menu link
- Convert comma separated list to serialized array to import as post meta
- Distribute Custom Post in different pages
- Problem with Apply Filters on URL in meta box filed of custom port type
- Custom loop to query posts with no featured image and/or no post editor content
- Improve Custom Post Permalink Structure
- Custom post type ‘Show on screen’ didn’t apply to number
- How to display posttypes and taxonomy in standard posts, not in a separate label?
- Loop for custom-post-type comparing taxonomy terms for “related” posts?
- Creating custom post type and taxonomy archives and pretty URLs
- Show 10 newest post for each value of a custom taxonomy
- Archive page for WordPress Custom Post Type doesn’t show pagination from paginate_links()
- SELECT custom post type and its meta in SQL
- Custom post type single page returns 404
- WP_Query with all posts in one custom post type and only posts in another custom post type with a specific category
- Display custom tax in “while” loop
- Show posts under a selected custom taxonomy term
- Wrong post ID in meta box callback
- Linking Taxonomies
- How do I retrieve the title of a term of a custom post type with custom taxonomies?
- Displaying WordPress Parent field in child post
- Get number of posts by a user (draft, pending review & published)
- How can I generate a list of post-type specific categories?
- Publish post and create additional posts with same content
- Paginating custom query on category template
- New WP_Query not isolating custom post types on front-page template
- Get a list of categories ids
- Pagination not working on homepage
- A to Z list for custom post types
- What Is My Fault With This WP_QUERY ? [ Pagination Problem ]
- WPNavi pagination links not working on custom pages
- Rewrite Rule for custom post type link with or without taxonomy terms
- How to add to taxonomies to a post type