fix: order and actions hooks #473

This commit is contained in:
vnmedeiros 2021-01-15 15:12:36 -03:00
parent 509cb6170a
commit dfac0bb1d3
2 changed files with 2 additions and 3 deletions

View File

@ -31,8 +31,7 @@ class Component_Hooks {
private function init() {
// the priority should see less than on function
// `load_admin_page()` of class `Admin` in file /src/views/class-tainacan-admin.php
add_action( 'wp_enqueue_scripts', array( &$this, 'register_component' ), 80 );
add_action( 'admin_enqueue_scripts', array( &$this, 'register_component' ), 80 );
add_action( 'init', array( &$this, 'register_component' ), 80 );
}
public function register_component() {

View File

@ -29,7 +29,7 @@ function tainacan_blocks_add_gutenberg_blocks_actions() {
add_action('init', 'tainacan_blocks_register_tainacan_item_submission_form');
add_action('init', 'tainacan_blocks_add_plugin_settings', 90);
add_action('wp_enqueue_scripts', 'tainacan_blocks_add_plugin_admin_settings', 90);
add_action('init', 'tainacan_blocks_add_plugin_admin_settings', 90);
add_filter('block_categories', 'tainacan_blocks_register_categories', 10, 2);
add_action('init', 'tainacan_blocks_register_category_icon');