fix priority on call action `tainacan-register-vuejs-component`

This commit is contained in:
vnmedeiros 2020-03-02 12:08:06 -03:00
parent 8a4beeacb4
commit da2c71b3e5
1 changed files with 1 additions and 1 deletions

View File

@ -32,10 +32,10 @@ class Component_Hooks {
// the priority should see less than on function
// `load_admin_page()` of class `Admin` in file /src/views/class-tainacan-admin.php
add_action( 'admin_enqueue_scripts', array( &$this, 'register_component' ), 80 );
do_action('tainacan-register-vuejs-component', $this);
}
public function register_component() {
do_action('tainacan-register-vuejs-component', $this);
foreach($this->registered_component as $handle => $component) {
wp_enqueue_script($handle, $component['script_path']);
}