Advertisement
geminilabs

[site-reviews] exclude script from SG Optimizer minification

Aug 2nd, 2019
400
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.26 KB | None | 0 0
  1. /**
  2.  * Exclude the Site Reviews script from being minified with the SG Optimizer plugin
  3.  * @param array $exclude
  4.  * @return array
  5.  */
  6. add_filter( 'sgo_js_minify_exclude', function( $exclude ) {
  7.     $exclude[] = 'site-reviews';
  8.     return $exclude;
  9. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement