Style

Modern Lights for Home (WB Floor Lamp)

add_filter( 'wpseo_sitemap_exclude_post_type', 'exclude_cart_checkout_from_sitemap', 10, 2 ); function exclude_cart_checkout_from_sitemap( $exclude_post_types, $post_type ) { if ( $post_type === 'page' ) { $exclude_ids = array( 2953, 72 ); // Replace with your cart and checkout page IDs $exclude_post_types = array_merge( $exclude_post_types, $exclude_ids ); } return $exclude_post_types; }