Automattic\WooCommerce\Internal\CLI\Migrator\Lib
ImportSession::mark_frontloading_errors_as_ignored
Method of the class: ImportSession{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ImportSession = new ImportSession(); $ImportSession->mark_frontloading_errors_as_ignored();
ImportSession::mark_frontloading_errors_as_ignored() ImportSession::mark frontloading errors as ignored code WC 10.7.0
public function mark_frontloading_errors_as_ignored() {
global $wpdb;
$wpdb->update(
$wpdb->posts,
array( 'post_status' => self::FRONTLOAD_STATUS_IGNORED ),
array(
'post_type' => 'frontloading_stub',
// 'post_status !=' => self::FRONTLOAD_STATUS_SUCCEEDED,
)
);
}