Adding custom meta in renewal orders (Subscriptio 3.x version)

In Subscriptio 3.x there's whitelist available to add any needed meta to your orders.

Here it is in the code:

$whitelist = apply_filters('subscriptio_order_meta_data_whitelist', $whitelist, $source_order, $target_order);


So you can easily add some meta keys that you want to be copied from initial order to all the renewals. For example, adding "custom_meta" key:

add_filter('subscriptio_order_meta_data_whitelist', 'subscriptio_order_meta_data_whitelist_add');

function subscriptio_order_meta_data_whitelist_add($whitelist) {

    $whitelist[] = 'custom_meta';

    return $whitelist;
Have more questions? Submit a request