示例#1
0
 public function getLoopSuggestionJavascript_callback()
 {
     $loop_suggestions = new VcLoopSuggestions($this->post('field'), $this->post('query'), $this->post('exclude'));
     $loop_suggestions->render();
     die;
 }
示例#2
0
/**
 * @since 4.2
 */
function vc_get_loop_suggestion()
{
    if (!vc_verify_admin_nonce() || !current_user_can('edit_posts') && !current_user_can('edit_pages')) {
        die;
    }
    $loop_suggestions = new VcLoopSuggestions(vc_post_param('field'), vc_post_param('query'), vc_post_param('exclude'));
    $loop_suggestions->render();
    die;
}
示例#3
0
function vc_get_loop_suggestion()
{
    $loop_suggestions = new VcLoopSuggestions(vc_post_param('field'), vc_post_param('query'), vc_post_param('exclude'));
    $loop_suggestions->render();
    die;
}
示例#4
0
/**
 * @since 4.2
 */
function vc_get_loop_suggestion()
{
    vc_user_access()->checkAdminNonce()->validateDie()->wpAny('edit_posts', 'edit_pages')->validateDie();
    $loop_suggestions = new VcLoopSuggestions(vc_post_param('field'), vc_post_param('query'), vc_post_param('exclude'));
    $loop_suggestions->render();
    die;
}