Plugin Directory

Changeset 2984576


Ignore:
Timestamp:
10/26/2023 06:37:34 PM (2 years ago)
Author:
johnibom
Message:

Tested upto v 6.3.2

Location:
wp-custom-cssjs/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-custom-cssjs/trunk/index.php

    r2326825 r2984576  
    2828        add_action( 'admin_menu',  array($this,'addPanel') );
    2929        add_action('init',array($this,'main'));
     30       
    3031    }
    3132    function addPanel(){
    3233        add_theme_page( __('Add CSS, JS or Tracking Pixel on the site right from your dashboard',"wpcssjs"), __('Custom CSS/JS',"wpcssjs"), 'edit_theme_options', 'wp_custom_css_js', array($this, 'backendConf') );
    3334    }
     35   
     36   
    3437    function hook_pie_html_box_header(){
    35         echo $this->wpccj_option['pie_html_box_header'];
     38        echo apply_filters( 'pie_header_scripts', $this->wpccj_option['pie_html_box_header']);
    3639    }
    3740   
     
    5659   
    5760    function hook_pie_html_box_footer(){
    58         echo $this->wpccj_option['pie_html_box_footer'];
     61        echo apply_filters( 'pie_footer_scripts', $this->wpccj_option['pie_html_box_footer']);
    5962    }
    6063    function hook_pie_css_box_footer(){
     
    8790        //$this->wpccj_option['pie_wpccj_enable'];
    8891        if($this->wpccj_option['pie_html_box_header'] != ''){
     92            add_filter( 'pie_header_scripts', 'do_shortcode' );
    8993            add_action('wp_head',array($this,'hook_pie_html_box_header'));
    9094        }
     
    96100        }
    97101        if($this->wpccj_option['pie_html_box_footer'] != ''){
     102            add_filter( 'pie_footer_scripts', 'do_shortcode' );
    98103            add_action('wp_footer',array($this,'hook_pie_html_box_footer'));
    99104        }
  • wp-custom-cssjs/trunk/readme.txt

    r2822350 r2984576  
    22Contributors: johnibom
    33Tags: css, js, jquery, javascript, tracking pixel, custom, css js
    4 Requires at least: 3.5
    5 Tested up to: 6.1.1
     4Requires at least: 4.5
     5Tested up to: 6.3.2
    66Requires PHP: 5.6
    77Stable tag: 1.4.1
Note: See TracChangeset for help on using the changeset viewer.