Skip to content

Instantly share code, notes, and snippets.

@atwellpub
Last active September 24, 2015 19:43
Show Gist options
  • Save atwellpub/24e6158d9763d040746e to your computer and use it in GitHub Desktop.
Save atwellpub/24e6158d9763d040746e to your computer and use it in GitHub Desktop.
calls to action, cta
<?php //remove me
$key = basename(dirname(__FILE__)); /* this grabs the parent folder name. we will use this as a identifier and key for storing data*/
$this_path = WP_CTA_UPLOADS_PATH . $key.'/'; /* this sets the absolute path to the template */
$url_path = WP_CTA_UPLOADS_URLPATH . $key.'/'; /* this sets the base URL to the template */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment