Add Registration Form button

Home Forums User Registration Add Registration Form button

This topic contains 4 replies, has 2 voices, and was last updated by  sanjeev3 7 months, 1 week ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #13210

    mygumbo
    Participant

    After installing the plugin, there is now an Add Registration Form button next to the Add Media button when creating a post. I need to remove this button for non-privileged roles. What is the capability name that I can use to remove it? Or what other method should I use?

    #13238

    sanjeev3
    Member

    Hi there,

    Thank you for pointing this out. This will be fixed in next version update. To let you know manage_user_registration is the capability.

    Regards,
    WPEverest Support

    #13459

    sanjeev3
    Member

    Hi there,

    To inform you that the editor will have the capability to add the registration form by default. There will not be any fix for this. You can customize it to use as per your requirements.

    add_filter( 'ur_display_media_button', 'ur_custom_capability' );
    function custom_capability() {
        if( ! current_user_can( 'manage_user_registration' ) || ! is_admin() ) {
                return false;
        }
    }

    Hope this helps!

    #13489

    mygumbo
    Participant

    Thanks. I changed the name of the function to ur_custom_capability (think that was a typo), and works great.

    #13633

    sanjeev3
    Member

    Hi again,

    Glad to know that you sorted it out. If you liked the plugin, I really appreciate your review to the plugin: https://wordpress.org/support/plugin/user-registration/reviews/#new-post

    Regards,
    WPEverest

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.