“releaseDate”

#41020
  • Resolved Forever Products
    Rank Math free

    Please advise how to remove “releaseDate” in <script type=”application/ld+json”>

    This is a new site build in Woocommerce, but the product has been available for a few years now.

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for contacting Rank Math today.

    You can add a custom “releaseDate” value for your products instead of removing the value using the following code on your theme’s functions.php file:

    /**
     * Filter to add Brand Name for Products.
     *
     * @param array $entity Snippet Data
     * @return array
     */
    add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
        $entity['releaseDate'] = '201-10-04T19:58:30+05:30';
        return $entity;
    });

    Looking forward to helping you. Thank you.

    ​​​​​​

    Thank you, is it possible to remove it as well? Does having it in add any value to SEO?

    Todd
    Rank Math free

    Hi,

    Yes, you can – using a filter available here:
    https://rankmath.com/kb/filters-hooks-api-developer/#extend-json-ld-data

    However, we may not be able to customize the filter for this situation.

    As much as we would love to offer customized solution to each and every user we have, it just isn’t possible for a small company like ours with limited resources.

    If you need help with anything else, please open a new support ticket here so we can help.

    We are always here for assistance.

Viewing 3 replies - 1 through 3 (of 3 total)

The ticket ‘“releaseDate”’ is closed to new replies.