• 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.

    https://www.ads-software.com/extend/plugins/wp-user-frontend/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Hekammed

    (@hekammed)

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

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP User Frontend] Disabling post status and using user roles with publishing’ is closed to new replies.