get_bloginfo( 'name' ), 'start_url' => get_home_url(), 'short_name' => substr( get_bloginfo( 'name' ), 0, 12 ), 'display' => 'standalone', 'background_color' => $theme_color, 'theme_color' => $theme_color, ); if ( $description = get_bloginfo( 'description' ) ) { $manifest['description'] = $description; } $manifest['icons'] = array_map( array( $this, 'build_icon_object' ), Jetpack_PWA_Helpers::get_default_manifest_icon_sizes() ); /** * Allow overriding the manifest. * * @since 5.6.0 * * @param array $manifest */ $manifest = apply_filters( 'jetpack_pwa_manifest', $manifest ); wp_send_json( $manifest ); } } function build_icon_object( $size ) { return array( 'src' => Jetpack_PWA_Helpers::site_icon_url( $size ), 'sizes' => sprintf( '%1$dx%1$d', $size ), ); } }