Title: Simple question
Last modified: August 20, 2016

---

# Simple question

 *  Resolved [JibsouX](https://wordpress.org/support/users/jibsoux/)
 * (@jibsoux)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/simple-question-17/)
 * Hellow i wonder what does exactly the box minify script alone of the rest
 * sorry i have a french version so in french it’s : Scripts à minifier et à imprimer
   séparemment
 * the second box option
 * because i have jquery in it and i just want to put the setting directly in wordpres
   core and not in bwp minify option ^^
 * [http://wordpress.org/extend/plugins/bwp-minify/](http://wordpress.org/extend/plugins/bwp-minify/)

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [Khang Minh](https://wordpress.org/support/users/oddoneout/)
 * (@oddoneout)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/simple-question-17/#post-3602495)
 * If you put file3 in that box, for example, you might have this:
 * – Instead of:
 * [http://domain.com/min/?f=file1.js,file2.js,file3.js](http://domain.com/min/?f=file1.js,file2.js,file3.js)
 * – you will get these two:
 * [http://domain.com/min/?f=file1.js,file2.js](http://domain.com/min/?f=file1.js,file2.js)
   
   [http://domain.com/min/?f=file3.js](http://domain.com/min/?f=file3.js) (separately
   printed out)
 *  Thread Starter [JibsouX](https://wordpress.org/support/users/jibsoux/)
 * (@jibsoux)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/simple-question-17/#post-3602516)
 * Thanks i understand that sorry by asking : ‘what does exactly the box minify 
   script alone of the rest’ i mean what in the code is realy do to actualy inser
   the script alone ..
    like a priority : add_action( $tag, $function_to_add, $priority,
   $accepted_args );
 * mmh i just want to put jquery alone but always alone and with no setting in option
   box i want to write dirrectly the setting instead of put jquery in the option
   box
 * you know what i mean ?
 * no box option setting but natif setting
 *  Plugin Author [Khang Minh](https://wordpress.org/support/users/oddoneout/)
 * (@oddoneout)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/simple-question-17/#post-3602541)
 * Are you meaning that you want to minify jquery separately, but you don’t want
   to put anything in the option box?
 * Please take a look at these hook references:
    [http://betterwp.net/wordpress-plugins/bwp-minify/#references](http://betterwp.net/wordpress-plugins/bwp-minify/#references)
 * `bwp_minify_script_direct` is probably the one you need.
 *  Thread Starter [JibsouX](https://wordpress.org/support/users/jibsoux/)
 * (@jibsoux)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/simple-question-17/#post-3602556)
 * Yes that’s it but what is the apropriate syntax for bwp_minify_script_direct ?
 * Thanks a lot by the way !
 *  Plugin Author [Khang Minh](https://wordpress.org/support/users/oddoneout/)
 * (@oddoneout)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/simple-question-17/#post-3602559)
 * It’s a hook that you can filter, check this out:
 * [http://codex.wordpress.org/Function_Reference/add_filter](http://codex.wordpress.org/Function_Reference/add_filter)
 * Remember to return an array 🙂
 *  Thread Starter [JibsouX](https://wordpress.org/support/users/jibsoux/)
 * (@jibsoux)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/simple-question-17/#post-3602560)
 * mmh like that .. ?
    sorry i’m not a boss in php :p
 * add_filter(‘bwp_minify_script_direct’, ‘exclude_jquery’);
 * function exclude_jquery($excluded)
    { $excluded = array(‘jquery’); return $excluded;}
 *  Plugin Author [Khang Minh](https://wordpress.org/support/users/oddoneout/)
 * (@oddoneout)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/simple-question-17/#post-3602561)
 * It’s not excluded to be exact, it’s ‘direct’. jQuery will be minified, but on
   its own.
 * And yes your codes look fine to me.
 *  Thread Starter [JibsouX](https://wordpress.org/support/users/jibsoux/)
 * (@jibsoux)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/simple-question-17/#post-3602562)
 * yeah sorry a cmd-c / v / your code that’s why i have exclude ^^
 * okey in function.php i test :
 * add_filter(‘bwp_minify_script_direct’, ‘direct_jquery’);
 * function direct_jquery($direct)
    { $direct = array(‘jquery’); return $direct;}
 *  Thread Starter [JibsouX](https://wordpress.org/support/users/jibsoux/)
 * (@jibsoux)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/simple-question-17/#post-3602563)
 * Okey i think it’s work perfectly 😉 THANKS A LOT DUDE !!!

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Simple question’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bwp-minify.svg)
 * [Better WordPress Minify](https://wordpress.org/plugins/bwp-minify/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bwp-minify/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bwp-minify/)
 * [Active Topics](https://wordpress.org/support/plugin/bwp-minify/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bwp-minify/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bwp-minify/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [JibsouX](https://wordpress.org/support/users/jibsoux/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/simple-question-17/#post-3602563)
 * Status: resolved