equal
deleted
inserted
replaced
55 * |
55 * |
56 * @since 4.7.0 |
56 * @since 4.7.0 |
57 * |
57 * |
58 * @throws Exception If the setting ID does not match the pattern `custom_css[$stylesheet]`. |
58 * @throws Exception If the setting ID does not match the pattern `custom_css[$stylesheet]`. |
59 * |
59 * |
60 * @param WP_Customize_Manager $manager The Customize Manager class. |
60 * @param WP_Customize_Manager $manager Customizer bootstrap instance. |
61 * @param string $id An specific ID of the setting. Can be a |
61 * @param string $id A specific ID of the setting. |
62 * theme mod or option name. |
62 * Can be a theme mod or option name. |
63 * @param array $args Setting arguments. |
63 * @param array $args Setting arguments. |
64 */ |
64 */ |
65 public function __construct( $manager, $id, $args = array() ) { |
65 public function __construct( $manager, $id, $args = array() ) { |
66 parent::__construct( $manager, $id, $args ); |
66 parent::__construct( $manager, $id, $args ); |
67 if ( 'custom_css' !== $this->id_data['base'] ) { |
67 if ( 'custom_css' !== $this->id_data['base'] ) { |
93 * Filter `wp_get_custom_css` for applying the customized value. |
93 * Filter `wp_get_custom_css` for applying the customized value. |
94 * |
94 * |
95 * This is used in the preview when `wp_get_custom_css()` is called for rendering the styles. |
95 * This is used in the preview when `wp_get_custom_css()` is called for rendering the styles. |
96 * |
96 * |
97 * @since 4.7.0 |
97 * @since 4.7.0 |
|
98 * |
98 * @see wp_get_custom_css() |
99 * @see wp_get_custom_css() |
99 * |
100 * |
100 * @param string $css Original CSS. |
101 * @param string $css Original CSS. |
101 * @param string $stylesheet Current stylesheet. |
102 * @param string $stylesheet Current stylesheet. |
102 * @return string CSS. |
103 * @return string CSS. |
113 |
114 |
114 /** |
115 /** |
115 * Fetch the value of the setting. Will return the previewed value when `preview()` is called. |
116 * Fetch the value of the setting. Will return the previewed value when `preview()` is called. |
116 * |
117 * |
117 * @since 4.7.0 |
118 * @since 4.7.0 |
|
119 * |
118 * @see WP_Customize_Setting::value() |
120 * @see WP_Customize_Setting::value() |
119 * |
121 * |
120 * @return string |
122 * @return string |
121 */ |
123 */ |
122 public function value() { |
124 public function value() { |