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
- Install Local.
- Create a new site called
dealersscottsdale. - Import the sanitised database dump via Tools → Import/Export.
- Copy the
wp-content/themes/suma-elementorand relevant plugin directories into the Local site. - Update
wp-config.phpwith 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.