products_remove_sets.before
Triggered after products have been excluded from static sets. Also when products contained in such sets are deleted.
Available since version 11.3.0.
Shop-Script
Input (passed by reference)
$params['set_ids'] array<int> IDs of the sets from which products have been excluded.
$params['products_id'] array<int> IDs of products existing at the moment of exclusion from sets.
$params['products_id'] array<int> IDs of products existing at the moment of exclusion from sets.
… your plugin code …
Output
Shop-Script
Plugin code example
PHP
public function productsRemoveSetsBefore($params)
{
waLog::dump(
sprintf_wp(
'Products with these IDs: %s are about to be removed from sets with these IDs: %s.',
implode(', ', $params['products_id']),
implode(', ', $params['set_ids'])
),
'shop/plugins/' . $this->id . '/products_remove_sets.before.log'
);
}









