Meta Tags
SureCart automatically outputs SEO meta tags for product pages, including title, description, Open Graph tags, and Twitter Card data. These filters let you customize or disable this behavior.surecart/noindex_query_vars
Filter the query variables that trigger a noindex meta tag on product pages. When a URL contains any of these query parameters, SureCart adds <meta name="robots" content="noindex"> to prevent search engines from indexing that page variation.
This is useful for preventing duplicate content issues. For example, URLs with tracking parameters, filter states, or session data should typically not be indexed separately from the canonical product page.
Filter Parameters
sc_display_product_seo_meta
Control whether SureCart outputs its built-in SEO meta tags for product pages. SureCart generates meta tags including:
<title>and<meta name="description">- Open Graph tags (
og:title,og:description,og:image,og:url,og:type) - Twitter Card tags (
twitter:card,twitter:title,twitter:description,twitter:image)
false to disable SureCart’s meta tag output, which is recommended when using a dedicated SEO plugin that generates its own meta tags.
Filter Parameters
surecart/og:image/size
Filter the WordPress image size used for Open Graph (og:image) and Twitter Card (twitter:image) meta tags. The Open Graph image is the preview image shown when your product pages are shared on social media platforms like Facebook, LinkedIn, and Twitter.
Filter Parameters
Facebook recommends images at least 1200×630 pixels for optimal display. The
'large' or 'full' sizes typically work best, but if your product images are very high resolution, you may want to use a smaller size to reduce page load time.Product Schema
sc_display_product_json_ld_schema
Control whether JSON-LD schema markup is output for products.
Filter Parameters
Yoast SEO Integration
SureCart integrates with Yoast SEO to provide proper SEO meta data for product pages. These filters allow you to customize how SureCart interacts with Yoast SEO’s presenter system.sc_wpseo_frontend_presenters
Filter the Yoast SEO “presenters” that SureCart uses on product pages. Presenters are Yoast’s system for outputting different types of SEO meta tags (title, description, Open Graph, etc.).
By default, SureCart uses a subset of Yoast’s presenters optimized for product pages. This filter lets you modify which presenters are used, allowing you to add custom meta tags or remove ones you don’t need.
Filter Parameters
Use Cases
Disable Schema for Free Products
Free products may not benefit from rich product snippets in search results. You can disable schema output for products with a $0 price:Disable All SureCart SEO for Third-Party Plugin
If you’re using an SEO plugin that fully supports custom post types, you may want to disable all of SureCart’s SEO output and let your plugin handle everything:Prevent Indexing of Sale/Promotion URLs
If you use query parameters to show promotional pricing or limited-time offers, prevent these variations from being indexed as separate pages:Disable Schema for Specific Product Types
If certain products (like services or digital downloads) shouldn’t have Product schema, you can conditionally disable it:Use Different OG Image Sizes Based on Product
Customize the Open Graph image size based on the product’s image dimensions or category:Detect and Disable Duplicate SEO Plugins
Automatically detect common SEO plugins and disable SureCart’s SEO output accordingly:Related
Products
Hook into product lifecycle events.
Templates
Hook into admin and template actions.