Automattic\WooCommerce\Blocks

Library{}WC 1.0

Deprecated from version 5.0.0 This class will be removed in a future release. This has been replaced by BlockTypesController.. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Library class.

No Hooks.

Usage

$Library = new Library();
// use class methods

Methods

  1. public static define_tables()
  2. public static init()
  3. public static register_blocks()

Changelog

Deprecated since 5.0.0 This class will be removed in a future release. This has been replaced by BlockTypesController.

Library{} code WC 9.0.1

class Library {

	/**
	 * Initialize block library features.
	 *
	 * @deprecated 5.0.0
	 */
	public static function init() {
		_deprecated_function( 'Library::init', '5.0.0' );
	}

	/**
	 * Register custom tables within $wpdb object.
	 *
	 * @deprecated 5.0.0
	 */
	public static function define_tables() {
		_deprecated_function( 'Library::define_tables', '5.0.0' );
	}

	/**
	 * Register blocks, hooking up assets and render functions as needed.
	 *
	 * @deprecated 5.0.0
	 */
	public static function register_blocks() {
		_deprecated_function( 'Library::register_blocks', '5.0.0' );
	}
}