true, 'has_archive' => true, ), 'objects' ); unset( $post_types['attachment'] ); $post_types = array_filter( $post_types, 'is_post_type_viewable' ); $provider_post_types = array(); // Generate a name => name array for backwards compatibility. foreach ( $post_types as $post_type ) { $provider_post_types[ $post_type->name ] = $post_type->name; } /** * Filters the post types used for Critical CSS * * @param array $post_types The array of post types to be used * * @since 1.0.0 */ return apply_filters( 'jetpack_boost_critical_css_post_types_archives', apply_filters_deprecated( 'jetpack_boost_critical_css_post_types', array( $provider_post_types, ), '3.4.0', 'jetpack_boost_critical_css_post_types_archives' ), $post_types ); } // phpcs:ignore Generic.Commenting.DocComment.MissingShort /** @inheritdoc */ public static function get_success_ratio() { // phpcs:ignore Generic.Commenting.DocComment.MissingShort return 1; } }