wp-content/themes/twentyseventeen/inc/template-functions.php:76Counts the number of our active panels.
intOne hook fires while twentyseventeen_panel_count() runs, in this order:
Filters the number of front page sections in Twenty Seventeen.
function twentyseventeen_panel_count() { $panel_count = 0; /** * Filters the number of front page sections in Twenty Seventeen. * * @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; } } return $panel_count;}Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-content/themes/twentyseventeen/inc/template-functions.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.