Automattic\WooCommerce\Database\Migrations

MetaToCustomTableMigrator::get_additional_where_clause_for_get_data_to_insert_or_update()protectedWC 1.0

Get additional string to be appended to the WHERE clause of the SQL query used by get_data_to_insert_or_update.

{} It's a method of the class: MetaToCustomTableMigrator{}

No Hooks.

Return

String. Additional string for the WHERE clause, must either be empty or start with "AND" or "OR".

Usage

// protected - for code of main (parent) or child class
$result = $this->get_additional_where_clause_for_get_data_to_insert_or_update( $entity_ids ): string;
$entity_ids(array) (required)
The ids of the entities being inserted or updated.

Code of MetaToCustomTableMigrator::get_additional_where_clause_for_get_data_to_insert_or_update() WC 7.1.0

protected function get_additional_where_clause_for_get_data_to_insert_or_update( array $entity_ids ): string {
	return '';
}