Automattic\WooCommerce\Internal\DataStores\Orders
CustomOrdersTableController::create_custom_orders_tables()
Create the custom orders tables in response to the user pressing the tool button.
{} Это метод класса: CustomOrdersTableController{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
// private - только в коде основоного (родительского) класса $result = $this->create_custom_orders_tables();
Код CustomOrdersTableController::create_custom_orders_tables() CustomOrdersTableController::create custom orders tables WC 6.6.1
private function create_custom_orders_tables() { // phpcs:ignore WordPress.Security.ValidatedSanitizedInput if ( ! isset( $_REQUEST['_wpnonce'] ) || false === wp_verify_nonce( $_REQUEST['_wpnonce'], 'debug_action' ) ) { throw new \Exception( 'Invalid nonce' ); } if ( ! $this->is_feature_visible() ) { throw new \Exception( "Can't create the custom orders tables: the feature isn't enabled" ); } $this->data_synchronizer->create_database_tables(); update_option( self::CUSTOM_ORDERS_TABLE_USAGE_ENABLED_OPTION, 'no' ); }