Skip to content
This repository was archived by the owner on Jun 11, 2019. It is now read-only.

First Run

Ryan Hertz edited this page Apr 3, 2018 · 1 revision

Assumes the user has never installed the plugin and this is the first interaction with it.

Tests

<?php
if( !get_option( 'fmc_settings' ) ){
  // The site does not have settings from the previous version of the plugin
  // No transition is necessary - it's a clean install
}
if( !get_option( 'flexmls_api_key' ) ){
  // The new version will store the api key here
  // If it doesn't exist, this site hasn't connected before and it's a first run
}

User Experience

Until the user has connected to the API, there's nothing else to be done so we'll only show the first-run screen under the flexMLS dashboard menu item. Once the API credentials are entered & validated and other first-run options are set, this page will go away.

Clone this wiki locally