Home / Admin / Prevent AIOSEO From Outputting any Data on Category Archive Pages
Duplicate Snippet

Embed Snippet on Your Site

Prevent AIOSEO From Outputting any Data on Category Archive Pages

Prevent AIOSEO from outputting any data on category archive pages.

<10
Code Preview
php
<?php
add_filter( 'aioseo_meta_views', 'aioseo_filter_meta_views' );
function aioseo_filter_meta_views( $views ) {
   if ( is_category() ) {
      return [];
   }
   return $views;
}

Comments

Add a Comment