Performance * * @uses $wp_customize->add_section() https://developer.wordpress.org/reference/classes/wp_customize_manager/add_section/ * @since 1.0.0 */ $wp_customize->add_section( new Azure_News_Customize_Section ( $wp_customize, 'azure_news_section_performance', array( 'priority' => 150, 'panel' => 'azure_news_panel_general', 'title' => __( 'Performance', 'azure-news' ), ) ) ); /** * Heading field for SEO performance * * General Settings > Performance > SEO * * @since 1.0.0 */ $wp_customize->add_setting( 'seo_performance_heading', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new Azure_News_Control_Heading( $wp_customize, 'seo_performance_heading', array( 'priority' => 5, 'section' => 'azure_news_section_performance', 'settings' => 'seo_performance_heading', 'label' => __( 'SEO', 'azure-news' ), ) ) ); /** * Toggle option for schema ready. * * General Settings > Performance * * @since 1.0.0 */ $wp_customize->add_setting( 'azure_news_site_schema_enable', array( 'default' => azure_news_get_customizer_default( 'azure_news_site_schema_enable' ), 'sanitize_callback' => 'azure_news_sanitize_checkbox' ) ); $wp_customize->add_control( new Azure_News_Control_Toggle( $wp_customize, 'azure_news_site_schema_enable', array( 'priority' => 10, 'section' => 'azure_news_section_performance', 'settings' => 'azure_news_site_schema_enable', 'label' => __( 'Make a website schema ready.', 'azure-news' ) ) ) ); } endif;