| 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 |
|