Available Core Tokens – Calls to Action Templating

{{Tokens}} are used in a call to action template’s markup to represent dynamic content.

In addition to dynamic settings that a developer creates in the template’s config.php file, Calls to Action plugin provides a list of core default tokens that can be used by the developer:

1 2 3 4 5 6 7 8 9 10 11 12
<?php
 
/* replace core tokens if available */
$template = str_replace( '{{cta-id}}' , $selected_cta['id'] , $template );
$template = str_replace( '{{variation-id}}' , $vid , $template );
$template = str_replace( '{{template-urlpath}}' , $selected_cta['templates'][$vid]['urlpath'] , $template );
$template = str_replace( '{{wordpress-ajaxurl}}' , admin_url( 'admin-ajax.php' ) , $template );
$template = str_replace( '{{cta-width}}' , $width , $template );
$template = str_replace( '{{cta-height}}' , $height , $template );
$template = str_replace( '{{width}}' , $w , $template );
$template = str_replace( '{{height}}' , $h , $template );

Originally located in https://github.com/inboundnow/calls-to-action/blob/master/modules/module.calls-to-action.php#L591