WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: HeadSpace 2] mass edit, not administrator - HOW? (5 posts)

  1. marky_uk
    Member
    Posted 3 years ago #

    Hi there

    Using HeadSpace 2 and it works great.

    I want users with EDITOR level access to be able to see the TOOLS \ META DATA option ... so they get the Meta-data mass-edit option that an administrator has.

    How do I do this?

    Thanks in advance!

    Mark

  2. Piet
    Member
    Posted 3 years ago #

    yeah, I am trying to figure this out too! Any news on this?

  3. Piet
    Member
    Posted 3 years ago #

    I have hacked the headspace.php file temporarily until something better comes along.

    The function is defined on line 153:
    define ('HEADSPACE_ROLE', 'manage_options');

    So all you have to do is change manage_options into something that editors have in common (for example edit_posts). If you then save the file you will notice that for Editors the meta data editor shows up under tools.

  4. marky_uk
    Member
    Posted 3 years ago #

    Hey Senlin,

    This is fantastic. Well done indeed! I've taken the code and it's doing exactly what I want. Hurrah!

    Mark

  5. Piet
    Member
    Posted 3 years ago #

    glad it works for you too Mark!

    Now, what you can do to be prepared for future plugin updates is to add something in front of the description (line 5) of the same file. Some thing like:

    Description: <strong>*** CHANGE LINE 153 INTO MANAGE_LINKS TO ENABLE SITEOWNERS TO MASS EDIT METADATA ***</strong> Meta-data manager on steroids, allowing complete control over all SEO needs such as keywords/tags, titles, description, stylesheets, and many many other goodies. (I use manage_links, because I have given site owners a separate role, but you can use any "flavor")

    Once you have saved it again, you will see a change of the plugins description in your plugins list. Just to remember you to change it again when the plugin sees an update.

    Piet

Topic Closed

This topic has been closed to new replies.

About this Topic