Please do not enqueue your scripts on whole admin
-
Hi @wpdevart
Could you change call
enqueue_requeried_scripts()
function to more private space? Could you load it only onpost.php
andpost-new.php
or on another page where it is required?Currently, you load your script & styles in the whole admin area and it broke our plugin CoursePress – it adds opacity, change a calendar UI widget.
Could you change file
youtube-embed.php
– just this line:add_action( 'admin_head', array($this,'enqueue_requeried_scripts') );
To this:
add_action( 'admin_head-post.php', array($this,'enqueue_requeried_scripts') ); add_action( 'admin_head-post-new.php', array($this,'enqueue_requeried_scripts') );
Thank you in advance.
Marcin
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Please do not enqueue your scripts on whole admin’ is closed to new replies.