Filters the number of front page sections in Twenty Seventeen.
$num_sectionsintwp-content/themes/twentyseventeen/front-page.php:45file scopewp-content/themes/twentyseventeen/inc/customizer.php:125twentyseventeen_customize_register()wp-content/themes/twentyseventeen/inc/template-functions.php:87twentyseventeen_panel_count() * @since Twenty Seventeen 1.0 * * @global int|string $twentyseventeencounter Front page section counter. * * @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 );Introduced in Twenty Seventeen 1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.