Automattic\WooCommerce\Blocks

Library{}WC 1.0

Устарела с версии 5.0.0 This class will be removed in a future release. This has been replaced by BlockTypesController.. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.

Library class.

Хуков нет.

Использование

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

Методы

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

Список изменений

Устарела с 5.0.0 This class will be removed in a future release. This has been replaced by BlockTypesController.

Код Library{} WC 8.7.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' );
	}
}