WordPress shortcode plugin not working

You can avoid to declare that player is a dependency for your javascript file, the problem is that Jquery isn’t recognized. Change this line: wp_enqueue_script( ‘main’, plugins_url( ‘/main.js’ , __FILE__ ),array(“jquery”,”player”),’0.0.3′,true); into this: wp_enqueue_script( ‘main’, plugins_url( ‘/main.js’ , __FILE__ ), [“jquery”] ); Also avoid to enqueue your script in the footer.

WordPress User Portal

Nevermind, turns out the Elementor Role Manager does pretty much this exactly by limiting out the more confusing or dangerous elements from being edited.