Advertisement
geminilabs

[site-reviews] exclude script from SG Optimizer minification

Aug 2nd, 2019
249
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement