Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // filter for a default review field tag
- add_filter('site-reviews/review/wrap/rating', function ($value, $rawValue, $tag) {
- $formId = 25958; // change this as needed
- if ($formId != $tag->args->form) {
- return $value;
- }
- if ('rating' === $tag->with->type) {
- return glsr_star_rating($rawValue);
- }
- return $rawValue;
- }, 10, 3);
- // filter for a custom field tag
- add_filter('site-reviews/custom/wrap/kunde', function ($value, $rawValue, $tag) {
- $formId = 25958; // change this as needed
- if ($formId != $tag->args->form) {
- return $value;
- }
- if ('rating' === $tag->with->type) {
- return glsr_star_rating($rawValue);
- }
- return $rawValue;
- }, 10, 3);
Add Comment
Please, Sign In to add comment