register( $block_file ); } do_action( 'uag_register_block', $this ); } /** * Gives all Blocks. * * @since 2.1.0 */ public function get_blocks() { if ( null === self::$blocks ) { $this->register_blocks(); } return self::$blocks; } } /** * Gives UAGB_Block object * * @since 2.1.0 * * @return object */ function uagb_block() { return UAGB_Block::get_instance(); } }