mihdan
10/24/2018 - 6:57 PM

Disable Yoast SEO Primary Category Feature

Disable Yoast SEO Primary Category Feature

<?php
/********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/

/* Disable Yoast SEO Primary Category Feature
 * Credit: Yoast development team
 * Last Tested: Jan 24 2017 using Yoast SEO 4.1 on WordPress 4.7.1
 */

add_filter( 'wpseo_primary_term_taxonomies', '__return_empty_array' );