seoAnalysis->enqueuePostToScan( $postId ); } /** * Enqueues a term to be scanned by the SEO Analyzer. * * @since 4.8.6 * * @param int $termId The term id. * @param int $ttId The term taxonomy id. * @param string $taxonomy Taxonomy slug. * @return void */ public function enqueueTermToScan( $termId, $ttId, $taxonomy ) { $taxonomiesToExclude = apply_filters( 'aioseo_seo_analyzer_scan_taxonomies_to_exclude', [ 'product_attributes' ] ); if ( in_array( $taxonomy, $taxonomiesToExclude, true ) || ! in_array( $taxonomy, aioseo()->helpers->getPublicTaxonomies( true ), true ) ) { return; } $aioseoTerm = Term::getTerm( $termId ); $aioseoTerm->seo_analyzer_scan_date = null; $aioseoTerm->save(); // Delete issues Issue::deleteAll( $termId, 'term' ); } }