WordPress at Your Fingertips
class is not described

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.

Return

null. Nothing.

Usage

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

Methods

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

Changelog

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

Code of Library{} WC 5.8.0

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' );
	}
}