public function getLoopSuggestionJavascript_callback() { $loop_suggestions = new VcLoopSuggestions($this->post('field'), $this->post('query'), $this->post('exclude')); $loop_suggestions->render(); die; }
/** * @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; }
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; }
/** * @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; }