Example #1
0
/**
 * 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());
}
Example #2
0
/**
 * Create an export and return the URL
 *
 * @deprecated 3.3.2
 */
function wpseo_get_export()
{
    _deprecated_function(__METHOD__, 'WPSEO 3.3.2', 'This method is deprecated.');
    wpseo_ajax_json_echo_die('');
}
Example #3
0
/**
 * 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());
}
Example #4
0
/**
 * 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());
}