'Enqueue wc-country-select in wordpress backend
I'm tryin to enqueue 'wc-country-select' script in the backend of Wordpress so I can create dropdowns of country/state pair.
I can easily load it on the frontend, but no luck in the backend, even that I use admin_enqueue_scripts. What I'm missing here? Thanks
add_action('admin_enqueue_scripts', 'enqueue_export_admin_scripts');
public function enqueue_export_admin_scripts($hook_suffix)
{
wp_enqueue_script('wc-country-select');
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
