4

Is there a way to wp_enqueue_script() and use it inside the Customizer Panel in Wordpress? Something like :

function myTheme_enqueue_script_admin() {
    wp_enqueue_script( 'custom-admin-js', get_template_directory_uri() . '/js/admin.min.js', array(), '1.0', true );
}
add_action('--ENQUEUE SCRIPT TO CUSTOMIZER--', 'myTheme_enqueue_script_admin');

Thank you!

2

1 Answer 1

1

yes, just use this hook

add_action( 'admin_enqueue_scripts', 'func' );

read more from codex

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.