How to add custom macro?

 
You can add custom macro by using 'rp_wcec_custom_macros' filter.
 
Here's the example of using this:
add_filter('rp_wcec_custom_macros', 'rp_wcec_add_custom_macros');

function rp_wcec_add_custom_macros($custom_macros, $args) {
return array('macro_key' => array('value' => 'macro_value'));
}
Note that you will need to replace macro_key and macro_value with actual key and value of your macro.
And of course you can call for your own methods/functions to get that key or value, and use the parameters being sent in this filter ($custom_macros, $args).
Have more questions? Submit a request