WordPress.org

Forums

WP User Frontend
Disabling post status and using user roles with publishing (3 posts)

  1. Hekammed
    Member
    Posted 3 years ago #

    First I want to say that this plugin is basically all I need to create nice membership site.

    Still, I got one issue with default post status and spent six hours trying to figure it out.

    I would need to decide what users and roles are able to publish posts straight and what roles have to be accepted. Plugin creates roles equal.

    Does anyone know is there any way to disable default behavior of post publishing and use normal user conditions? I quess it would need a little bit coding but I couldn't find the right place.

    http://wordpress.org/extend/plugins/wp-user-frontend/

  2. Hekammed
    Member
    Posted 3 years ago #

    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';
    }

  3. todorbb
    Member
    Posted 3 years ago #

    Don't you think that when one registeres and posts something... Later you will have probem that they can EDIT and it immediately will go LIVE.
    This is something that bothers me because it won't go trough any moderation.

    I asked a question but noone answered me.
    If an author has already published a post and he wants to edit it - an APPROVE should be made compulsory. Otherwise the edit goes live right away.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP User Frontend
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic