Filters & Hooks

Rehub Content Egg Add-On

With this filter, you can change the Offer data before saving it to the Content Egg plugin.

apply_filters('wpaiceoffer_import_array', $new_data, $data);

With this filter, you can change the Coupon data before saving it to the Content Egg plugin.

apply_filters('wpaicecoupon_import_array', $new_data, $data);

With this filter, you can limit the keeping duration of the cached Offers. If it ends then cached Offers will be cleared and a new import adds new Offers. Using Time Constants.

apply_filters( 'ceoi_cached_timeout', 30*DAY_IN_SECONDS );

With this filter, you can set Offer status at Out of the stock if the Offer does not have a price. Default value False. To enable it to set the second parameter to True via a function like __return_true().

apply_filters( 'ceoi_stock_out', __return_false() );

With this filter, you can change the Offer data before it will be updated

apply_filters( 'wpaiceoffer_custom_fields_update', $new_data[$item], $value );