wp-content/themes/twentyfourteen/inc/featured-content.php:378Adds settings to the Customizer.
$wp_customizeWP_Customize_Manager public static function customize_register( $wp_customize ) { $wp_customize->add_section( 'featured_content', array( 'title' => __( 'Featured Content', 'twentyfourteen' ), 'description' => sprintf( /* translators: 1: Featured tag editor URL, 2: Post editor URL. */ __( 'Use a <a href="%1$s">tag</a> to feature your posts. If no posts match the tag, <a href="%2$s">sticky posts</a> will be displayed instead.', 'twentyfourteen' ), esc_url( add_query_arg( 'tag', _x( 'featured', 'featured content default tag slug', 'twentyfourteen' ), admin_url( 'edit.php' ) ) ), admin_url( 'edit.php?show_sticky=1' ) ), 'priority' => 130, 'theme_supports' => 'featured-content', ) ); // Add Featured Content settings. $wp_customize->add_setting( 'featured-content[tag-name]', array( 'default' => _x( 'featured', 'featured content default tag slug', 'twentyfourteen' ), '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' ), ) ); // Add Featured Content controls. $wp_customize->add_control( 'featured-content[tag-name]', array( 'label' => __( 'Tag Name', 'twentyfourteen' ), 'section' => 'featured_content', 'priority' => 20, ) ); $wp_customize->add_control( 'featured-content[hide-tag]', array( 'label' => __( 'Don’t display tag on front end.', 'twentyfourteen' ), 'section' => 'featured_content', 'type' => 'checkbox', 'priority' => 30, ) ); }Introduced in Twenty Fourteen 1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-content/themes/twentyfourteen/inc/featured-content.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.