Title: Hekammed's Replies | WordPress.org

---

# Hekammed

  [  ](https://wordpress.org/support/users/hekammed/)

 *   [Profile](https://wordpress.org/support/users/hekammed/)
 *   [Topics Started](https://wordpress.org/support/users/hekammed/topics/)
 *   [Replies Created](https://wordpress.org/support/users/hekammed/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/hekammed/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/hekammed/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/hekammed/engagements/)
 *   [Favorites](https://wordpress.org/support/users/hekammed/favorites/)

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[User Frontend – Membership, User Registration, User Profile, User Directory & Content Restriction with Frontend Post Submission] [Plugin: WP User Frontend] Disabling post status and using user roles with publishing](https://wordpress.org/support/topic/plugin-wp-user-frontend-disabling-post-status-and-using-user-roles-with-publishing/)
 *  Thread Starter [Hekammed](https://wordpress.org/support/users/hekammed/)
 * (@hekammed)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wp-user-frontend-disabling-post-status-and-using-user-roles-with-publishing/#post-2955976)
 * Problem solved.
 * I edited plugin’s file:
    **wp-user-frontend/wpuf-add-post.php**
 * and added small piece of code to check if current user has capability to publish.
 * $post_stat = wpuf_get_option( ‘post_status’ ); //find this row
    //and add this
   code below to check user’s capability **if ( current_user_can( ‘publish_posts’)){
   $post_stat = ‘publish’; }
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[User Frontend – Membership, User Registration, User Profile, User Directory & Content Restriction with Frontend Post Submission] [Plugin: WP User Frontend] Pending for members, Published for Contributors](https://wordpress.org/support/topic/plugin-wp-user-frontend-pending-for-members-published-for-contributors/)
 *  [Hekammed](https://wordpress.org/support/users/hekammed/)
 * (@hekammed)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wp-user-frontend-pending-for-members-published-for-contributors/#post-2910535)
 * Problem solved for my purpose at least!
 * I edited plugin’s file:
    **wp-user-frontend/wpuf-add-post.php**
 * and added small piece of code to check if current user has capability to publish.
 * $post_stat = wpuf_get_option( ‘post_status’ ); //find this row
 * //and add this code below to check user’s capability and modify $post_stat
    **
   if ( current_user_can( ‘publish_posts’ ) ) { $post_stat = ‘publish’; }
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[User Frontend – Membership, User Registration, User Profile, User Directory & Content Restriction with Frontend Post Submission] [Plugin: WP User Frontend] Pending for members, Published for Contributors](https://wordpress.org/support/topic/plugin-wp-user-frontend-pending-for-members-published-for-contributors/)
 *  [Hekammed](https://wordpress.org/support/users/hekammed/)
 * (@hekammed)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wp-user-frontend-pending-for-members-published-for-contributors/#post-2910533)
 * Same problem in here.
 * I would like to use normal roles for publishing status but I don’t know how to
   disable feature.

Viewing 3 replies - 1 through 3 (of 3 total)