array( 'setup_wizard' => array( 'endpoints' => $this->get_endpoints(), ), ), ); } /** * Get the various endpoints for the Embed UI. * * @since 2.6 * * @return array */ private function get_endpoints() { return array( // Endpoint to validate a license value. 'validate_license' => array( 'action' => array( 'value' => GF_Setup_Wizard_Endpoint_Validate_License::ACTION_NAME, 'default' => 'mock_endpoint', ), 'nonce' => array( 'value' => wp_create_nonce( GF_Setup_Wizard_Endpoint_Validate_License::ACTION_NAME ), 'default' => 'nonce', ), ), // Endpoint to save a series of preferences from the Wizard. 'save_prefs' => array( 'action' => array( 'value' => GF_Setup_Wizard_Endpoint_Save_Prefs::ACTION_NAME, 'default' => 'mock_endpoint', ), 'nonce' => array( 'value' => wp_create_nonce( GF_Setup_Wizard_Endpoint_Save_Prefs::ACTION_NAME ), 'default' => 'nonce', ), ), ); } }