This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$html =<<<HTML | |
<script type="text/javascript"> | |
<!-- | |
piCId = '{$campaign}'; | |
{$tracking_code_template} | |
--> | |
</script> | |
HTML; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'frm_skip_form_action', 'form_action_conditions', 10, 2 ); | |
/** | |
* @param $skip_this_action | |
* @param $args | |
* @return bool | |
* | |
* Skips user registration actiom if | |
* email address is already registered |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function _wgt_scripts() { | |
// styles and scripts code... | |
$form_html = array( | |
'trip_signup_form' => _wgt_get_trip_signup_form_html(), | |
'request_trip_quote' => _wgt_request_trip_quote_form_html() | |
); | |
wp_localize_script( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ heroku config:set NODE_MODULES_CACHE=false | |
$ git commit -am 'disable node_modules cache' --allow-empty | |
$ git push heroku master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ heroku plugins:install heroku-repo | |
$ heroku repo:purge_cache -a appname | |
$ git commit --allow-empty -m "Purge cache" | |
$ git push heroku master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () | |
{ | |
//Build a pseudo-class to prevent polluting our own scope. | |
var api = { | |
Settings: {}, | |
Vox: {}, | |
Start: function () | |
{ | |
//Get the *.myshopify.com domain | |
var shop = Shopify.shop; |