Advertisement
fauzanjeg

Include Scripts in `Exclude scripts from Autoptimize` to Exclude Scripts || Enable Optimized Script

Oct 27th, 2021
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. /* Include Scripts in `Exclude scripts from Autoptimize` to Exclude Scripts */
  2. $exclude_scripts_autoptimize = get_option( 'autoptimize_js_exclude', '' );
  3. $exclude_scripts_autoptimize = array_map( 'trim', explode( ',', $exclude_scripts_autoptimize ) );
  4. $exclude_scripts = array_merge($exclude_scripts, $exclude_scripts_autoptimize);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement