We have build everything needed to run an online stores platform, so in this lesson we’ll restrict wp-admin access.
This means that only super administradors will have access to wp-admin.
Store administrators will have to use the frontend dashboard to manage their online stores.
For this to work correcly, all the URLs that will be used on the frontend dashboard need to be added to the access restriction settings of WP Frontend Admin.
Go to Network Admin > WP Frontend Admin > Settings > Access Restrictions.
Paste the following relative URLs on the Access restriction: What wp-admin pages can be viewed on the frontend field:
Finally, click on Save changes.
Important. In case there are some frontend dashboard pages that get the ?vgfa_blacklisted_url=1 fragment on their URLs and do not load correctly, you need to manually add the URL of the wp-admin content you want to show on the frontend to the Access restriction: What wp-admin pages can be viewed on the frontend field.
This is also useful if you’re displaying any other wp-admin page on the frontend that was not included on our frontend dashboard.
In the next lesson, we’ll do a course recap.