Automattic\WooCommerce\Blocks
Library{}
Устарела с версии 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
Методы
- public static define_tables()
- public static init()
- public static register_blocks()
Список изменений
Устарела с 5.0.0 | This class will be removed in a future release. This has been replaced by BlockTypesController. |
Код Library{} Library{} WC 9.7.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' ); } }