Inventory_Presser_Blocks::add_hooks()

Adds hooks

On This Page


Return Return

(void)


Top ↑

Source Source

File: includes/class-blocks.php

	public function add_hooks() {
		add_action( 'init', array( $this, 'register_block_types' ) );
		add_action( 'enqueue_block_assets', array( $this, 'enqueue_block_editor_assets' ) );
		add_filter( 'block_categories_all', array( $this, 'add_category' ), 10, 1 );

		/**
		 * When a vehicle is opened in the block editor, add a Description block
		 * to the post.
		 */
		add_action( 'the_post', array( $this, 'create_block_description' ), 10, 1 );
	}