Dynamically Generate Custom Schema Veriables

  • Are there existing sorting math dynamic variables for the custom schema filter? how can i use it?

    @type website
    @id {{Page_Url}}#website
    url {{Page Url}}
    name {{Site Name}}
    datePublished {{date Published}}


Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math today.

    I am afraid that this variables are not available in the plugin but you can easily define your very own variables to use on your PHP function my hooking into the following filter:

     * 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 ) {
        return $entity;

    Looking forward to helping you. Thank you.


Viewing 1 replies (of 1 total)

You must be logged in to reply to this ticket.