コード例 #1
0
ファイル: ajax.php プロジェクト: dreamteam111/dreamteam
/**
 * Display base region list in Store Settings -> General
 *
 * @since 3.8.9
 * @access private
 *
 * @uses WPSC_Settings_Tab_General
 * @uses WPSC_Settings_Tab_General::display_region_drop_down()  Shows region dropdown
 *
 * @return array    $return     Response args
 */
function _wpsc_ajax_display_region_list()
{
    require_once 'settings-page.php';
    require_once 'includes/settings-tabs/general.php';
    $return = array();
    ob_start();
    $tab = new WPSC_Settings_Tab_General();
    $tab->display_region_drop_down();
    $return['content'] = ob_get_clean();
    return $return;
}
コード例 #2
0
function wpsc_display_region_list()
{
    if (!wp_verify_nonce($_POST['nonce'], 'wpsc_settings_page_nonce')) {
        die('Session expired. Try refreshing your settings page.');
    }
    require_once 'settings-page.php';
    require_once 'includes/settings-tabs/general.php';
    $tab = new WPSC_Settings_Tab_General();
    $tab->display_region_drop_down();
    exit;
}