Automattic\WooCommerce\Database\Migrations\CustomOrderTable
CLIRunner::enable_compat_mode
Enables compatibility mode, which keeps the HPOS and posts datastore in sync.
Method of the class: CLIRunner{}
No Hooks.
Returns
null. Nothing (null).
Usage
$CLIRunner = new CLIRunner(); $CLIRunner->enable_compat_mode(): void;
Changelog
| Since 9.1.0 | Introduced. |
CLIRunner::enable_compat_mode() CLIRunner::enable compat mode code WC 10.7.0
public function enable_compat_mode(): void {
$this->toggle_compat_mode( true );
}