• Resolved rafaelmazza

    (@rafaelmazza)


    Hello, I am very young, I know nothing about programming codes and I am trying to make my site with the ease of WordPress, the Vodi Theme with the Plugin But videos are looking very good.

    I’m having difficulties with the user registration:
    I noticed that the new user always has the “collaborator” role. This is bad for me.

    I intend to use a user management plugin, can I keep the user button in the header and replace the registration and log in / log out form page with my user management plugin.

    Do you ask me to indicate where I make this change?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Farook Ibrahim

    (@farookibrahim)

    Hello @rafaelmazza,

    Thank you for trying out our plugin. By default the newly registered user role as “contributor” in our plugin however you can use below code to change user role to “subscriber”. You can also change to any user role.

    
    if ( ! function_exists( 'vodi_child_modify_new_user_data' ) ) {
        function vodi_child_modify_new_user_data( $args ) {
            $args['role'] = 'subscriber';
            return $args;
        }
    }
    add_filter( 'masvideos_new_user_data', 'vodi_child_modify_new_user_data', 10 );
    

    Regards

    hello @farookibrahim,
    where i have to paste this code, i don’t installed vodi child theme, i just have vodi theme

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘replace the registration and log in / log out’ is closed to new replies.