Heads up!
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
When using [frm-stats] to display star ratings, the default setting shows a maximum of 10 stars. If the value is higher, 10 stars and a count label will be displayed. Use this filter if you want to increase this limit beyond 10 stars.
Usage
add_filter( 'frm_pro_max_star_rating', 'change_star_rating_limit');
Parameters
- None
Examples
Change star rating limit
add_filter( 'frm_pro_max_star_rating', 'change_star_rating_limit');
function change_star_rating_limit() {
return 20;
}