Dynamically Generate Custom Schema Veriables

#31499
  • Resolved Ayhan Malkoç
    Rank Math free

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

    Example:

    @type
    website

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

    vs.

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.

    ​​​​​​​

    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 1 replies (of 1 total)

The ticket ‘Dynamically Generate Custom Schema Veriables’ is closed to new replies.