Skip to main content
4 events
when toggle format what by license comment
Feb 12, 2019 at 6:04 history edited dazunE CC BY-SA 4.0
I added the code example of condition inside the function
Feb 12, 2019 at 5:55 comment added dazunE You can wrap wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/wp-color-picker-script.js', array( 'wp-color-picker' ), false, true ); by an if condition.
Feb 11, 2019 at 8:49 comment added John Cook Where would I add it and what would I add in the above code? I've tried a few things and all it does is it doesn't seem to load the css or JS
Feb 11, 2019 at 5:37 history answered dazunE CC BY-SA 4.0