Skip to main content

Local Development

The recommended local WordPress development environments are Local by Flywheel, Laragon (Windows), or Laravel Herd with a PHP server configured for WordPress.


Using Local by Flywheel

  1. Install Local.
  2. Create a new site called dealersscottsdale.
  3. Import the sanitised database dump via Tools → Import/Export.
  4. Copy the wp-content/themes/suma-elementor and relevant plugin directories into the Local site.
  5. Update wp-config.php with the Local DB credentials.

Compiling Theme Assets

The Suma Elementor theme uses Webpack Mix for asset compilation:

cd wp-content/themes/suma-elementor

npm install
npm run dev # watch mode
npm run prod # minified production build

The compiled files are output to assets/css/ and assets/js/.


WP-CLI Commands

WP-CLI is the fastest way to manage a local WordPress install:

# Update all plugins
wp plugin update --all

# Flush caches
wp cache flush
wp rewrite flush

# Create a test dealer user
wp user create dealer_test [email protected] --role=subscriber

Plugin Updates

The site uses MainWP (via mainwp-child plugin) for centralised management of plugin/theme updates across environments. Do not auto-update plugins on production without testing on staging first.