• Resolved winsibo

    (@winsibo)


    Hi,

    I wanted to test my pagen so I entered my administrator e-mail as a vendor account e-mail and now I no longer have access to my dashboard as an administrator but as a seller.

    what can I do ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author MultiVendorX

    (@wcmp)

    Hi @winsibo, sorry to hear that.

    Please add the follow code to your active theme’s functions.php –

    add_action('init', 'set_user_to_admin', 99);
    function set_user_to_admin(){
        $user = get_user_by('ID', 1);
        $user->set_role('administrator');
    }

    And access your site once and access the first user (admin) you created. It will gain the admin access.

    Once that is done, please remove these codes.

    Kindly keep us posted.

    Thread Starter winsibo

    (@winsibo)

    It worked thank you very much

    Plugin Author MultiVendorX

    (@wcmp)

    @winsibo, thanks for the update 🙂

    We would love it if you shared your experience by giving us 5/5 review here: https://ww.wp.xz.cn/support/plugin/dc-woocommerce-multi-vendor/reviews/#new-post

    Seeing glowing reviews from existing customers makes others more comfortable knowing they’ll get the support they need should an issue with our services arise.

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

The topic ‘Lost administrator privileges’ is closed to new replies.