Forums

post_submit_meta_box() displaying as if my role is contributor instead of admin (3 posts)

  1. hunsford
    Member
    Posted 2 years ago #

    I'm using post_submit_meta_box() to display the Publish metabox on a screen I'm developing for a plugin. The elements in the box are displaying as if my role were contributor (e.g., the Publish button says Submit for Review instead). I'm logged in with the role of administrator, so I should see everything.

    Does anyone know what could cause this and how to fix it?

  2. hunsford
    Member
    Posted 2 years ago #

    Even though I'm logged in as an administrator, WordPress is displaying the Publish metabox as if current_user_can('publish_posts') is false.

    I've checked the database to make sure nothing is wrong with the administrator-role capabilities. 'publish_posts' is listed. (I haven't touched the roles in this installation, so it would be weird for them to be messed up.)

    Any ideas what I need to do in my plugin to get the post_submit_meta_box to display correctly?

  3. hunsford
    Member
    Posted 1 year ago #

    This remains an issue for me. Is anyone else out there using post_submit_meta_box in their plugin? Has anyone experienced a similar issue?

Topic Closed

This topic has been closed to new replies.

About this Topic