Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
List of core tokens for call to action templating engine. Originally located in https://github.com/inboundnow/calls-to-action/blob/master/modules/module.calls-to-action.php#L591
<?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 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.