示例#1
0
 public function getLoopSettingsJavascript_callback()
 {
     $loop_settings = new VcLoopSettings($this->post('value'), $this->post('settings'));
     $loop_settings->render();
     die;
 }
示例#2
0
/**
 * @since 4.2
 */
function vc_get_loop_settings_json()
{
    if (!vc_verify_admin_nonce() || !current_user_can('edit_posts') && !current_user_can('edit_pages')) {
        die;
    }
    $loop_settings = new VcLoopSettings(vc_post_param('value'), vc_post_param('settings'));
    $loop_settings->render();
    die;
}
示例#3
0
function vc_get_loop_settings_json()
{
    $loop_settings = new VcLoopSettings(vc_post_param('value'), vc_post_param('settings'));
    $loop_settings->render();
    die;
}
示例#4
0
/**
 * @since 4.2
 */
function vc_get_loop_settings_json()
{
    vc_user_access()->checkAdminNonce()->validateDie()->wpAny('edit_posts', 'edit_pages')->validateDie();
    $loop_settings = new VcLoopSettings(vc_post_param('value'), vc_post_param('settings'));
    $loop_settings->render();
    die;
}