wpseo_primary_category_admin_pages

wpseo_primary_category_admin_pages

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-seo.19.9

apply_filters('wpseo_primary_category_admin_pages') is found 1 times:

  • /src/conditionals/primary-category-conditional.php line 45
    		 * Filter: Adds the possibility to use primary category at additional admin pages.
    		 *
    		 * @param array $admin_pages List of additional admin pages.
    		 */
    		$additional_pages = \apply_filters( 'wpseo_primary_category_admin_pages', [] );
    		return \in_array( $this->current_page->get_current_admin_page(), \array_merge( [ 'edit.php', 'post.php', 'post-new.php' ], $additional_pages ), true );
    	}
    }