Advertisement
geminilabs

Untitled

Mar 30th, 2022
1,341
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.31 KB | None | 0 0
  1. /**
  2.  * @param array $fields
  3.  * @return array
  4.  */
  5. add_filter('site-reviews/review-form/fields', function ($fields) {
  6.     foreach($fields as &$field) {
  7.         if ('rating' === glsr_get($field, 'type')) {
  8.             $field['class'] = 'glsr_trx_addons_attrib_rating';
  9.         }
  10.     }
  11.     return $fields;
  12. }, 20);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement