WordPress.org

Ready to get started?Download WordPress

Forums

Press This! GRR! (2 posts)

  1. mhains
    Member
    Posted 5 years ago #

    I really need the "press this" option to work for contributors. It currently won't let anyone below "author" use the feature.

    Anyone know how to make "Press This" (formerly "Press It") work for contributors who must submit their articles for review?

    thanks

  2. noel
    Member
    Posted 5 years ago #

    In the press this code, it requires users to be able to publish posts.

    On line 10 (in trunk anyways) there is a line that reads:
    if ( ! current_user_can('publish_posts') ) wp_die( __( 'Cheatin’ uh?' ) );

    This makes it so only users that can publish posts are allowed to user press this (makes sense). But, if you want some different functionality, just change the wp-admin/press-this.php file.

    You could replace 'publihs_posts' with 'level_1' etc. Consult ryan's post:
    http://boren.nu/archives/2005/12/01/whats-new-in-20-roles-and-capabilities/

    and the capabilities API:
    http://trac.wordpress.org/browser/trunk/wp-includes/capabilities.php

Topic Closed

This topic has been closed to new replies.

About this Topic