add_setting( 'website_background_color', array( 'default' => '#000', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage', ) ); $wp_customize->add_setting( 'header_background_color', array( 'default' => '#000', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage', ) ); $wp_customize->add_setting( 'primary_color', array( 'default' => '#d3a655', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'refresh', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'primary_color', array( 'label' => __( 'Primary color', 'musicify' ), 'section' => 'colors', 'priority' => 1, 'settings' => 'primary_color', ) ) ); function dark_minimalistblogger_sanitize_checkbox( $input ) { return ( ( isset( $input ) && true == $input ) ? true : false ); } } add_action( 'customize_register', 'dark_minimalistblogger_customize_register', 9999 ); if(! function_exists('dark_minimalistblogger_customizer_css_final_output' ) ): function dark_minimalistblogger_customizer_css_final_output(){ ?> 'Social Share and Follow Buttons', 'slug' => 'superb-social-share-and-follow-buttons', 'required' => false, ), array( 'name' => 'Recent Posts with Thumbnails', 'slug' => 'superb-recent-posts-with-thumbnail-images', 'required' => false, ), ); $config = array( 'id' => 'dark-minimalistblogger', // Unique ID for hashing notices for multiple instances of TGMPA. 'default_path' => '', // Default absolute path to bundled plugins. 'menu' => 'tgmpa-install-plugins', // Menu slug. 'has_notices' => true, // Show admin notices or not. 'dismissable' => true, // If false, a user cannot dismiss the nag message. 'dismiss_msg' => '', // If 'dismissable' is false, this message will be output at top of nag. 'is_automatic' => false, // Automatically activate plugins after installation or not. 'message' => '', // Message to output right before the plugins table. ); tgmpa( $plugins, $config ); }