'default' => false, 'inverse' => false, ), 'team' => array( 'label' => __( 'Section: Team', 'onepress' ), 'title' => __( 'Our Team', 'onepress' ), 'default' => false, 'inverse' => false, ), 'videolightbox' => array( 'label' => __( 'Section: Video Lightbox', 'onepress' ), 'title' => '', 'default' => false, 'inverse' => false, ), ); $new = array( 'hero' => $sections_config['hero'] ); foreach ( $sorted_sections as $id ) { if ( isset( $sections_config[ $id ] ) ) { $new[ $id ] = $sections_config[ $id ]; } } // Filter to add more custom sections here return apply_filters( 'onepress_get_sections', $new ); } }