public static function customize_register($wp_customize)
{
$wp_customize->add_section('featured_content', array('title' => __('Featured Content', 'jetpack'), 'description' => sprintf(__('Easily feature all posts with the <a href="%1$s">"featured" tag</a> or a tag of your choice. Your theme supports up to %2$s posts in its featured content area.', 'jetpack'), admin_url('/edit.php?tag=featured'), absint(self::$max_posts)), 'priority' => 130, 'theme_supports' => 'featured-content'));
/* Add Featured Content settings.
*
* Sanitization callback registered in Featured_Content::validate_settings().
* See http://themeshaper.com/2013/04/29/validation-sanitization-in-customizer/comment-page-1/#comment-12374
*/
$wp_customize->add_setting('featured-content[tag-name]', array('type' => 'option', 'sanitize_js_callback' => array(__CLASS__, 'delete_transient')));
$wp_customize->add_setting('featured-content[hide-tag]', array('default' => true, 'type' => 'option', 'sanitize_js_callback' => array(__CLASS__, 'delete_transient')));
$wp_customize->add_setting('featured-content[show-all]', array('default' => false, 'type' => 'option', 'sanitize_js_callback' => array(__CLASS__, 'delete_transient')));
// Add Featured Content controls.
$wp_customize->add_control('featured-content[tag-name]', array('label' => __('Tag name', 'jetpack'), 'section' => 'featured_content', 'theme_supports' => 'featured-content', 'priority' => 20));
$wp_customize->add_control('featured-content[hide-tag]', array('label' => __('Hide tag from displaying in post meta and tag clouds.', 'jetpack'), 'section' => 'featured_content', 'theme_supports' => 'featured-content', 'type' => 'checkbox', 'priority' => 30));
$wp_customize->add_control('featured-content[show-all]', array('label' => __('Display tag content in all listings.', 'jetpack'), 'section' => 'featured_content', 'theme_supports' => 'featured-content', 'type' => 'checkbox', 'priority' => 40));
}