daily pastebin goal
15%
SHARE
TWEET

Untitled

a guest Aug 10th, 2018 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Jquery conflict issue in multiple wordpress plugins
  2. function sheader() {
  3. $plugin_dir = WP_PLUGIN_URL . "/";
  4. ?>
  5.        <script type="text/javascript" src="<?php echo $plugin_dir; ?>isearch/js/jquery-1-6.js" ></script>
  6. <?php
  7. }
  8.  
  9. add_action('wp_head', 'sheader');
  10.    
  11. function nheader() {
  12. $plugin_dir = WP_PLUGIN_URL . "/";
  13. ?>
  14.        <script type="text/javascript" src="<?php echo $plugin_dir; ?>isearch/js/jquery-1-6.js" ></script>
  15. <?php
  16. }
  17.  
  18. add_action('wp_head', 'nheader');
  19.    
  20. <?php class arevico_facebook{
  21. function __construct(){
  22.     add_action('wp_enqueue_scripts', array(&$this,'append_javascript'));
  23. }
  24.  
  25. function append_javascript(){
  26.      wp_enqueue_script("jquery");
  27.  }}
  28. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top