You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Kevin Hoffman edited this page Dec 12, 2017
·
8 revisions
Local Development
Local development of the WP Business Reviews Server plugin requires two local WordPress sites to mimic the client-server relationship. Complete the setup steps for both websites below.
Set Up WordPress Site #1: Local Client Site
This site represents the end user who has downloaded the WP Business Reviews plugin.
Create a new local WordPress site at wp-business-reviews.localhost. This domain must be used in order for the local dev flags to work correctly.
Add define( 'WPBRS_ENV', 'development' ); to wp-config.php. Setting this constant links the "Connect to Facebook" button to wp-business-reviews-server.localhost for testing. If this constant is not set to development, then the plugin will attempt to authenticate through wpbusinessreviews.com.
Set Up WordPress Site #2: Local Server Site
Create a new local WordPress site at wp-business-reviews-server.localhost. This domain must be used in order for the local dev flags to work correctly.
Ensure that the wp-business-reviews-server.localhost URL is listed among valid OAuth redirect URLs in the Facebook app settings shown below. It should already be there, but double-check to be sure.
Begin Development
The local environment should now be ready for development.