Removing Date from snippets

#27210
  • Resolved Michael
    Rank Math free

    Hi, is there any way to disable the date from the snippets?

    • This topic was modified 6 years ago by Michael.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Michael
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Michael Davis
    Rank Math free

    Hello,

    Thank you for contacting Rank Math today.

    It is possible to modify schema data and remove or add items by using the following filter on your theme’s functions.php file:

    /**
     * Filter to Short-circuit Schema if a 3rd party is interested in generating their own data.
     * Replace $schmea_type with schema name like article, review, etc.
     * @param array $entity Snippet Data
     * @return array
     */
    add_filter( "rank_math/snippet/rich_snippet_{$schema_type}", function( $entity ) {
     return $entity;
    });

    Looking forward to helping you. Thank you.

    ​​​​​​

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘Removing Date from snippets’ is closed to new replies.