5

I'm not aware of any other way but to use both add_action lines, for a single function. Example: function my_enqueue_sripts_function_name(){ // your enqueue logic here } add_action('wp_enqueue_scripts', 'my_enqueue_sripts_function_name' ); add_action('admin_enqueue_scripts', 'my_enqueue_sripts_function_name' ); There's no rule that forbids ...


2

You tried to load files from the assets folder, but you made a typo and named the folder assests and didn't notice


Only top voted, non community-wiki answers of a minimum length are eligible