PluginProbe
SpiceBox / 2.4
SpiceBox v2.4
trunk 0.2.2 0.2.3 0.2.4 0.2.5 0.2.6 0.2.7 0.2.8 0.2.9 0.3 0.3.1 0.3.2 0.3.3 0.3.4 0.3.5 0.3.6 0.3.7 0.3.8 0.3.9.1 0.3.9.2 0.4 0.5 0.6 0.7 1.0 All 76 releases
spicebox / inc / cloudpress / customizer.php

customizer.php in SpiceBox 2.4, at inc/cloudpress/customizer.php

30 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! function_exists( 'spiceb_cloudpress_customize_register' ) ) :
3 /**
4 * cloudpress Customize Register
5 */
6
7 function spiceb_cloudpress_customize_register( $wp_customize ) {
8 $cloudpress_features_content_control = $wp_customize->get_setting( 'cloudpress_service_content' );
9 if ( ! empty( $cloudpress_features_content_control ) ) {
10 $cloudpress_features_content_control->default = spiceb_cloudpress_get_service_default();
11 }
12 }
13 add_action( 'customize_register', 'spiceb_cloudpress_customize_register' );
14 endif;
15
16
17 if ( ! function_exists( 'spiceb_cloudpress_fun_customize_register' ) ) :
18 /**
19 * cloudpress Customize Register
20 */
21
22 function spiceb_cloudpress_fun_customize_register( $wp_customize ) {
23 $cloudpress_features_content_controls = $wp_customize->get_setting( 'cloudpress_funfact_content' );
24 if ( ! empty( $cloudpress_features_content_controls ) ) {
25 $cloudpress_features_content_controls->default = spiceb_cloudpress_get_funfact_default();
26 }
27 }
28 add_action( 'customize_register', 'spiceb_cloudpress_fun_customize_register' );
29 endif;
30