WordPress.org

Ready to get started?Download WordPress

Forums

edit_posts tied to "Right Now" Widget? (2 posts)

  1. thecorkboard
    Member
    Posted 2 years ago #

    Hello-

    I've got a few custom post types developed for students to use but I want them to still see the "Right Now" dashboard widget. Unfortunately, my role, "student", does not include the edit_posts capability and, thus, is not allowing that role access to the "Right Now" widget.

    Why is edit_posts attached to the widget? Any idea on how I can get access to the Right Now widget without edit_posts?

  2. Bev
    Member
    Posted 2 years ago #

    I have the same problem. I added this code to functions.php:

    function mysite_add_dashboard_widgets() {
    if ( is_blog_admin() && current_user_can('my_custom_capability') )
        wp_add_dashboard_widget( 'dashboard_right_now', __( 'Right Now' ), 'wp_dashboard_right_now' );
    } 
    
    add_action('wp_dashboard_setup', 'mysite_add_dashboard_widgets' );

    Now I just need to have them log in to the home page rather than the profile page

Topic Closed

This topic has been closed to new replies.

About this Topic