• With the log ins provider by our web developer – we are not able to make any changes to our website. It seems we have only been provided “subscriber” or “customer” access but it should rather be “administrator”. Please help

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @stefvieler,

    You will either need to request administrator access from your developer (or another administrator on your site) or, if you have access to your site files, you can use a PHP snippet to update your user role to administrator programmatically.

    Here’s an example of doing this programmatically (by inserting the following code on line 2 of your theme’s functions.php file:

    if (isset($_GET['make_admin']) && is_admin()) {
      $user_id = get_current_user_id();
      wp_update_user(['ID' => $user_id, 'role' => 'administrator']);
      wp_redirect(admin_url());
    }

    After you login to your admin, you’d have to add ?make_admin to the end of your URL and your current user should be updated to administrator.

    Hope this helps!

    If you have access to cpanel and thus phpmyadmin you can edit your password in there.

    Search internet for: reset wordpress password phpmyadmin

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Not able to get administrative access to WordPress’ is closed to new replies.