Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Adds the "dynamic_control" class to the rating SELECT element to prevent it from being transformed by the jQuery Uniform library
- * Paste this in your active theme's functions.php file.
- * @param string $rendered
- * @param string $type
- * @return string
- */
- add_filter('site-reviews/rendered/field', function ($rendered, $type) {
- if (!is_admin() && $type == 'select') {
- $rendered = str_replace('glsr-star-rating', 'glsr-star-rating dynamic_control', $rendered);
- }
- return $rendered;
- }, 10, 2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement