Can I use internal CSS and jQuery code on my plugins

wordpress
javascript
css

#1

I’m making an Elementor addon. I want to know can i use any internal CSS and jQuery code inside my plugin? I know that inline CSS and scripts are not allowed on codecanyon and themeforest.

But I’ve need to add internal CSS and jQuery code. So, can I add CSS and jQuery in this way? Or, Will envato give me a rejection for this???


#2

Sure you can.
Just use wp_enqueue_script and wp_enqueue_style for including your custom JS & CSS.


#3

Hi! Thanks for your reply. I know that I can add external css or js scripts with wp_enqueue_script and wp_enqueue_style.

But I want to know can I use internal CSS on any template file?