Accept User Ratings from Users

#9835
  • Resolved Dat Tran
    Rank Math free

    In some following Schema types: Local business, Product, Recipe, Software Application,… I think RankMath need accept user rating instead of editor’s rating. Maybe we can use a shortcode or some options to show it in the post, page,…

    • This topic was modified 4 years, 9 months ago by Dat Tran.
Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math today.

    This is an interesting feature and I would be happy to pass this on to our developers so that it can be considered for future development.
    At the moment, you can also override the rating value displayed on the schema by hooking into the following developer 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;
    });

    I hope this info helps. 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 ‘Accept User Ratings from Users’ is closed to new replies.