Skip to content

Instantly share code, notes, and snippets.

<?php
$html =<<<HTML
<script type="text/javascript">
<!--
piCId = '{$campaign}';
{$tracking_code_template}
-->
</script>
HTML;
@acebytes
acebytes / frm-skip-action.php
Last active December 5, 2021 00:40
Skip Formidable Forms User Registration Action
<?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
<?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(
@acebytes
acebytes / heroku-node-cache.txt
Created October 8, 2018 08:58
Disable Heroku Node modules cache
$ heroku config:set NODE_MODULES_CACHE=false
$ git commit -am 'disable node_modules cache' --allow-empty
$ git push heroku master
@acebytes
acebytes / heroku-build-cache.txt
Last active October 8, 2018 08:58
Clear Heroku build cache
$ heroku plugins:install heroku-repo
$ heroku repo:purge_cache -a appname
$ git commit --allow-empty -m "Purge cache"
$ git push heroku master
@acebytes
acebytes / email-widget.js
Created February 12, 2018 06:16 — forked from nozzlegear/email-widget.js
This is an example email capturing widget, used to demonstrate the power of Shopify's script tags to add dynamic functionality to a Shopify store front. Learn more about using Shopify script tags with The Shopify Development Handbook at https://nozzlegear.com/shopify-development-handbook.
(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;