twentyseventeen_front_page_sections

twentyseventeen_front_page_sections

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-5.5.3

apply_filters('twentyseventeen_front_page_sections') is found 3 times:

  • /wp-content/themes/twentyseventeen/front-page.php line 43

    * @since Twenty Seventeen 1.0
    *
    * @param int $num_sections Number of front page sections.
    */
    $num_sections = apply_filters( ‘twentyseventeen_front_page_sections’, 4 );
    global $twentyseventeencounter;

    // Create a setting and control for each of the sections available in the theme.
    for ( $i = 1; $i < ( 1 + $num_sections ); $i++ ) { $twentyseventeencounter = $i; twentyseventeen_front_page_section( null, $i ); [/php]

  • /wp-content/themes/twentyseventeen/inc/customizer.php line 125
    	 * @since Twenty Seventeen 1.0
    	 *
    	 * @param int $num_sections Number of front page sections.
    	 */
    	$num_sections = apply_filters( 'twentyseventeen_front_page_sections', 4 );
    
    	// Create a setting and control for each of the sections available in the theme.
    	for ( $i = 1; $i < ( 1 + $num_sections ); $i++ ) {
    		$wp_customize->add_setting(
    			'panel_' . $i,
    			array(
    
  • /wp-content/themes/twentyseventeen/inc/template-functions.php line 85

    * @since Twenty Seventeen 1.0
    *
    * @param int $num_sections Number of front page sections.
    */
    $num_sections = apply_filters( ‘twentyseventeen_front_page_sections’, 4 );

    // Create a setting and control for each of the sections available in the theme.
    for ( $i = 1; $i < ( 1 + $num_sections ); $i++ ) { if ( get_theme_mod( 'panel_' . $i ) ) { $panel_count++; } [/php]