HEX
Server: Apache
System: Linux webm003.cluster111.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: assotraipi (849654)
PHP: 5.4.45
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/assotraipi/www/wp-content/plugins/download-monitor/src/Integrations/YoastSEO.php
<?php

class DLM_Integrations_YoastSEO {

	/**
	 * Setup integration
	 */
	public function setup() {
		add_filter( 'wpseo_sitemap_exclude_taxonomy', array( $this, 'exclude_taxonomies' ), 10, 2 );
	}

	/**
	 * Exclude our categories from YoastSEO sitemap
	 *
	 * @param $is_excluded
	 * @param $taxonomy_name
	 *
	 * @return bool
	 */
	public function exclude_taxonomies( $is_excluded, $taxonomy_name ) {
		if ( "dlm_download_category" == $taxonomy_name || "dlm_download_tag" == $taxonomy_name ) {
			$is_excluded = true;
		}

		return $is_excluded;
	}
}