• Resolved waelmoussa

    (@waelmoussa)


    Hi, I created a new role “company” to manage the the capability as we need. everything works fine, but in Avada Builder Options > Role Manager section, the “company” role does not appear.

    I tried just for a test to add a new role from functions.php, which works fine with the Avada role manager with no issue.
    But if I made any change to the role capability with the Members plugin it would disappear again from Avada Builder Options.

    I tried a different method to register the Members plugin roles with Avada theme but unfortunately didn’t work with me.

    add_action( 'members_register_roles', 'register_members_roles_with_avada' ); // Hook into Members' role registration
    
    function register_members_roles_with_avada() {
        // Get roles registered by Members plugin
        $members_roles = members_get_roles();
    
        // Get existing Avada roles
        $avada_options = get_option( 'fusion_options', array() );
        $avada_roles = isset( $avada_options['user_roles'] ) ? $avada_options['user_roles'] : array();
    
        // Merge the roles and update Avada options
        $merged_roles = array_merge( $members_roles, $avada_roles );
        update_option( 'fusion_options', array_unique( $merged_roles ) );
    }

    Do you have any suggestions?

    The page I need help with: [log in to see the link]

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

    (@waelmoussa)

    Update: I added to the role new capability to edit posts, that fixed the issue. but actually I don’t want to give the role this capability, I only need this role to be able to edit other 3 custom post type created with ACF pro. I know it’s not issue relevant to your plugin due that Avada theme forcing the “Edit Posts” capability to appear the role in their role manager.

    Still, any suggestions will be appreciated

    Plugin Support Omar ElHawary

    (@omarelhawary)

    Hi @waelmoussa,

    Thanks for reaching out Members Support Team!

    You should contact Avada support team to check that with them as you described it’s not in our scope of support.

    Regards,

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Integration with Avada theme role manager’ is closed to new replies.