Documentation errors with filters?

  • it says:

     * Filter to change the schema 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}_entity", function( $entity ) {
     return $entity;

    In this example you are missing a forward slash, but also you are referencing a variable named $schmea_type

    Schema is spelled wrong and doesn’t even have any reference in the function.

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    Thank you for letting us know about those mistakes, I will send them to our editors (and also about the examples).

    Looking forward to helping you. Thank you.


Viewing 1 replies (of 1 total)

You must be logged in to reply to this ticket.