[ad_1]
Hi,
Yes, you can create a custom tag by adding this code to your theme’s functions.php file:
add_filter('wpbs_dynamic_tag', function($content, $tag, $data){// Check what tag we are replacing
if ($tag != '{Calendar Price}') {
return $content;
}
$prices = $data['payment']->get('prices');
return str_replace($tag, $prices['events']['price'], $content);
}, 10, 3);
Then use the {Calendar Price}
tag in the contract.