/** * @since 4.4 */ function vc_get_autocomplete_suggestion() { $query = vc_post_param('query'); $tag = vc_post_param('shortcode'); $param_name = vc_post_param('param'); vc_render_suggestion($query, $tag, $param_name); }
/** * @since 4.4 */ function vc_get_autocomplete_suggestion() { vc_user_access()->checkAdminNonce()->validateDie()->wpAny('edit_posts', 'edit_pages')->validateDie(); $query = vc_post_param('query'); $tag = strip_tags(vc_post_param('shortcode')); $param_name = vc_post_param('param'); vc_render_suggestion($query, $tag, $param_name); }
/** * @since 4.4 */ function vc_get_autocomplete_suggestion() { if (!vc_verify_admin_nonce() || !current_user_can('edit_posts') && !current_user_can('edit_pages')) { die; } $query = vc_post_param('query'); $tag = strip_tags(vc_post_param('shortcode')); $param_name = vc_post_param('param'); vc_render_suggestion($query, $tag, $param_name); }