Play Video

In this lesson, we’ll apply the last changes to our restaurant management platform.

1- Block access to wp-admin

WP Frontend Admin has a great feature that allows you to control the access to the dashboard pages. You can enter the list of allowed URLs, and we will do the following:

– Make sure only those URLs are accessible in the front end dashboard

– Block all the wp-admin pages for all users except super admins

– Block all the admin content screens in the front end that are not explicitly allowed

This way, your network will be more secure and people won’t access unauthorized pages.

Go to Network Admin > WP Frontend Admin > Settings > Access restrictions.

Copy and paste the following URLs into the Access restriction: What wp-admin pages can be viewed on the frontend field and Save the changes. These are the URLs that we will allow based on the platform pages that we created in the course:

edit.php?post_type=shop_order
admin.php?page=wc-admin&path=%2Fanalytics%2Foverview
edit.php?post_type=shop_coupon
admin.php?page=wc-admin&path=%2Fcustomers
edit.php?post_type=product
edit-tags.php?taxonomy=product_cat&post_type=product
users.php
admin.php?page=wc-settings&tab=tax
admin.php?page=wc-settings&tab=checkout
admin.php?page=wc-settings&tab=auto_refresh
customize.php?return=%2Fwp-admin%2Fadmin.php%3Fpage%3Dwc-settings
customize.php?kt-woomail-customize=1&url=http%3A%2F%2Fdashboard.restaurantmanager.local%2F%3Fkt-woomail-preview%3D1
admin.php?page=account
post-new.php?post_type=shop_order
edit.php?post_type=shop_order
post-new.php?post_type=shop_coupon
edit.php?post_type=shop_coupon
post-new.php?post_type=product
edit.php?post_type=product
post.php?action=edit
post.php?action=trash
post.php
post.php?get-post-lock=1
term.php?taxonomy=product_cat
users.php
post-new.php?post_type=shop_order
post-new.php?post_type=shop_coupon
post-new.php?post_type=product
term.php?taxonomy=product_cat

Important notes:

– If you added more pages to your front end dashboard, you need to add the wp-admin URLs in this field to allow them.

– If you open pages in the front end dashboard as a site owner, and you’re redirected to ?vgfa_blacklisted_url=1 or the content doesn’t 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 in our course.

2- ADD YOUR FIRST RESTAURANT SITE AND TEST THE PLATFORM

Now it’s time to test that everything works correctly, and for that you need to register a restaurant site on your platform.

If you’re using WP Ultimo 1, go to your homepage and select your plan to start adding your first site.

If you’re using WP Ultimo 2, go to your register page and follow the registration process

Once you’re done registering your new site, you’ll be automatically redirected to the frontend dashboard. You can start configuring your restaurant site, creating some meals, setting up some payment gateways, taxes, etc. You’re ready to manage your restaurant.

TIP

If you have a premium license of WP Frontend Admin, you can download the full backup of our restaurants platform, so you can import it on your site and everything shown in this course will be already configured for you. It will save you a lot of time.

Platform for WP Ultimo 1.x

Platform for WP Ultimo 2.x

Close