Forum Replies Created

Viewing 15 posts - 2,146 through 2,160 (of 2,506 total)
  • Author
    Posts
  • Vladimir
    Keymaster

    Hi Bira,

    In my opinion, the correct way to solve this issue is for you to create a custom taxonomy called “ure” (for example) which has a single term called “allow” — and you assign THAT term to any new post by that user. This way, this term will never be deleted by any other plugin or function, your custom taxonomy is hidden and doesn’t clash with existing taxonomies, and by adding THAT you will ensure a user can always add posts even before or without setting the taxonomy he’s restricted to.

    Thank you for the brilliant idea and useful note about wp_set_post_terms() function. Proposed decision allows to add new post without visible term assigned. This allows to have an option to “start a new post without any taxonomy” too.

    I will apply this enhanced logic to the next update. Thanks again.

    Vladimir
    Keymaster

    The fix for this issue was included into the version 4.23. Did you test with it?

    in reply to: Update from Dashboard #2003
    Vladimir
    Keymaster

    Good. Thanks for the feedback.

    in reply to: user role "none"? #2002
    Vladimir
    Keymaster

    In relation to ‘shortcode’ this feature was realized:

    Shortcode for content view access restriction


    Posts view restrictions includes a similar option ‘No role for this site’ also:

    Content view access restriction for selected roles

    I’m not sure that this add-on will work with BuddyPress though. I did not tested URE Pro with BuddyPress yet. It works with posts, pages and any custom post type. If BuddyPress page is a ‘post type’ like others then it should do the trick.

    I should look at BuddyPress and make some tests to be sure.

    in reply to: Update Pages by Review #1998
    Vladimir
    Keymaster

    Try this code:

    
    add_action('save_post', 'submit_for_review_update', 25 );
    
    function submit_for_review_update($post_id) {
        
        if (empty($post_id)) {
            return;
        }
        
        $post = get_post($post_id);
        if (!is_object($post)) { 
            return;
        }
    
        if ($post->post_type=='revision') {
           return;
        }
        
        $current_user = wp_get_current_user();    
        if (in_array('author', $current_user->roles) && $post->post_status=='publish') {
            $my_post = array(
                'ID' => $post_id,
                'post_status' => 'pending',
            );
    
            remove_action('save_post', 'submit_for_review_update', 25);
            wp_update_post($my_post);
            add_action('save_post', 'submit_for_review_update', 25);
        }
    }
    
    in reply to: plugin-update-checker.php #1997
    Vladimir
    Keymaster

    Hello,

    This part was not changed from a very begin. Method PucFactory::addVersion() is defined at the same file, line #1041. I suppose you may have installed another version of class PucFactory, as it’s defined here just in condition that it does not exist yet, line #963:

    
    if ( !class_exists('PucFactory') ):
    

    Could you please check, what other plugin causes this conflict?

    Vladimir
    Keymaster

    Hi Bira,

    Thanks for letting me know that a problem was resolved.

    Especially thank you for the bug report (user-role-editor-pro/includes/pro/classes/posts-edit-access.php on line 171). I really used a wrong class name there. I will fix it with a next update.

    in reply to: Update from Dashboard #1990
    Vladimir
    Keymaster

    Hi,

    I found and fixed the bug with plugin update from the WordPress multisite “Network Admin – Plugins” page. I will include this fix into the next update.

    in reply to: Other Roles Feature #1989
    Vladimir
    Keymaster

    Hi,

    Yes, It’s possible to assign to the user more than one role. When a user have multiple roles assigned – their capabilities are added.
    In a situation when “if for a user with role1: we decide to display topbar admin
    and for role2, we decide to hide topbar admin” user will not see top admin menu bar.

    in reply to: Hide admin topbar for non logged in users #1988
    Vladimir
    Keymaster

    Hi,

    Thanks for letting me know.

    in reply to: Redirect user when no access to page #1987
    Vladimir
    Keymaster

    Hi,

    Thanks for your opinion. I agree. I will add this feature.

    in reply to: Redirect user when no access to page #1981
    Vladimir
    Keymaster

    Hi,

    Look at this plugin:
    https://wordpress.org/plugins/redirection/
    It should be enough if you wish to add redirection.

    in reply to: How to make universal changes on WP Multisite #1976
    Vladimir
    Keymaster

    It’s not possible currently to replicate admin menu access data your set for roles to the all sites. I consider to add such feature to the one of the future versions.

    in reply to: Update from Dashboard #1974
    Vladimir
    Keymaster

    Thanks for the information.
    I suppose that you get this error when you tried update URE Pro from ‘Plugins’ page?
    I will work on the fix.

    As a workaround the update works as expected via ‘Dashboard->Updates’.

    in reply to: hide restricted plugins from plugins page #1973
    Vladimir
    Keymaster

    Thanks.
    I added the updated page to the documentation about this feature:

    Restrict plugins available for activation/deactivation

Viewing 15 posts - 2,146 through 2,160 (of 2,506 total)