コード例 #1
0
ファイル: ajax.php プロジェクト: healthcommcore/osnap
/**
 * Create an export and return the URL
 */
function wpseo_get_export()
{
    $include_taxonomy = filter_input(INPUT_POST, 'include_taxonomy') === 'true';
    $export = new WPSEO_Export($include_taxonomy);
    wpseo_ajax_json_echo_die($export->get_results());
}
コード例 #2
0
ファイル: ajax.php プロジェクト: BennyHudson/foundations
/**
 * Create an export and return the URL
 */
function wpseo_get_export()
{
    check_ajax_referer('wpseo-export');
    $include_taxonomy = WPSEO_Utils::filter_input(INPUT_POST, 'include_taxonomy') === 'true' ? true : false;
    $export = new WPSEO_Export($include_taxonomy);
    wpseo_ajax_json_echo_die($export->get_results());
}
コード例 #3
0
ファイル: ajax.php プロジェクト: designomx/DMXFrmwrk
/**
 * Create an export and return the URL
 */
function wpseo_get_export()
{
    if (!current_user_can('manage_options')) {
        die('-1');
    }
    $include_taxonomy = filter_input(INPUT_POST, 'include_taxonomy') === 'true';
    $export = new WPSEO_Export($include_taxonomy);
    wpseo_ajax_json_echo_die($export->get_results());
}