public static function preview_content_width() { global $wp_customize; if (!is_customize_preview()) { return; } $setting = $wp_customize->get_setting('jetpack_custom_css[content_width]'); if (!$setting) { return; } $customized_content_width = (int) $setting->post_value(); if (!empty($customized_content_width)) { $GLOBALS['content_width'] = $customized_content_width; } }