HEX
Server: Apache
System: Linux web5.visualcom.es 4.18.0-477.21.1.lve.1.el8.x86_64 #1 SMP Tue Sep 5 23:08:35 UTC 2023 x86_64
User: ensaco.es (10019)
PHP: 8.3.32
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/ensaco.es/httpdocs/wp-content/plugins/bb-plugin/classes/class-fl-builder-seo.php
<?php
/**
 * @since 2.4
 */
final class FLBuilderSEO {
	public function __construct() {
		$this->filters();
	}
	private function filters() {
		/**
		 * WordPress 5.5 adds native support for sitemaps so we need to remove our post type and taxonomy.
		 */
		add_filter( 'wp_sitemaps_post_types', function ( $post_types ) {
				unset( $post_types['fl-builder-template'] );
				return $post_types;
		} );
		add_filter( 'wp_sitemaps_taxonomies', function ( $taxonomies ) {
				unset( $taxonomies['fl-builder-template-category'] );
				return $taxonomies;
		} );
	}
}
new FLBuilderSEO();