laipower/wp-content/plugins/static-html-output-plugin/plugin/WP2Static/WP2Static.php
2020-04-07 13:03:04 +00:00

2 lines
492 B
PHP

<?php
class WP2Static { public function loadSettings( $target_settings ) { $general_settings = array( 'general', ); $target_settings = array_merge( $general_settings, $target_settings ); if ( isset( $_POST['selected_deployment_option'] ) ) { require_once dirname( __FILE__ ) . '/PostSettings.php'; $this->settings = WPSHO_PostSettings::get( $target_settings ); } else { require_once dirname( __FILE__ ) . '/DBSettings.php'; $this->settings = WPSHO_DBSettings::get( $target_settings ); } } }