fix: order and actions hooks #473
This commit is contained in:
parent
509cb6170a
commit
dfac0bb1d3
|
@ -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() {
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue