aioseo_sitemap_woocommerce_exclude_hidden_products, true
aioseo_sitemap_woocommerce_exclude_hidden_products, true
Appears in: all-in-one-seo-pack.5.0.0.1
Hook Type: filter
Displaying hooks found in version: all-in-one-seo-pack.5.0.0.1apply_filters('aioseo_sitemap_woocommerce_exclude_hidden_products, true') is found 2 times:
- /app/Common/Sitemap/Query.php line 228
*/ private function excludeHiddenProducts( $query ) { if ( ! aioseo()->helpers->isWooCommerceActive() || ! apply_filters( 'aioseo_sitemap_woocommerce_exclude_hidden_products', true ) ) { return $query; } static $hiddenProductIds = null; if ( null === $hiddenProductIds ) { - /app/Common/Sitemap/Root.php line 372
$whereClause = "AND p.ID NOT IN ( $implodedPostIds )"; } if ( apply_filters( 'aioseo_sitemap_woocommerce_exclude_hidden_products', true ) && aioseo()->helpers->isWooCommerceActive() && 'product' === $postType ) { // Exclude products when excluded from both catalog and search. $whereClause .= " AND p.ID NOT IN ( SELECT CONVERT(tr.object_id, unsigned) AS object_id