Skip to content

Instantly share code, notes, and snippets.

@tatterzig96
tatterzig96 / prism_example.js
Last active May 8, 2019 13:52
Conversations & Site Tracking Code
// Standard tracking code
<script type="text/javascript">
(function(e,t,o,n,p,r,i){e.prismGlobalObjectAlias=n;e.pgo=e.pgo||function(){(e.pgo.q=e.pgo.q||[]).push(arguments)};e.pgo.l=(new Date).getTime();r=t.createElement("script");r.src=o;r.async=true;i=t.getElementsByTagName("script")[0];i.parentNode.insertBefore(r,i)})(window,document,"https://prism.app-us1.com/prism.js","pgo");
pgo('setAccount', 'YOUR_ACCOUNT_NUMBER');
pgo('setTrackByDefault', true);
pgo('process');
</script>
// Tracking code with known visitor email provided by the client
@skipshean
skipshean / Suppress CF Affiliate badge
Created September 8, 2016 00:35
don't display the clickfunnels affiliate badge on page - overrides the drop down menu that doesn't work
.nodoBadge {
display: none !important;
}
@ksnider
ksnider / order-form-url-params.js
Created April 21, 2015 23:50
Pass URL parameters into Infusionsoft order forms
/*
This script (courtesy of Tyler Garns) passes URL parameters into order forms. The promo code will be
automatically "submitted" Just remove all the other fields that you don't need.
*/
<script>
jQuery(document).ready(function() {
function getUrlVar(key){
var result = new RegExp(key + "=([^&]*)", "i").exec(window.location.search);
if (result != null) {
@messica
messica / my_wp_nav_menu_objects.php
Last active August 29, 2015 13:59
Hide Menu Items Based on Membership Categories
<?php
/* Hide Menu Items Based on Membership Categories */
function my_wp_nav_menu_objects($sorted_menu_items, $args)
{
global $wpdb;
//only check this theme location
if ($args->theme_location != 'secondary-menu')
return $sorted_menu_items;
@franz-josef-kaiser
franz-josef-kaiser / limit_admin_post_list_fields.php
Created July 3, 2013 13:04
Speed up the post list views in WordPress admin UI screens. Reduce the queried fields to what is needed to display the posts and what "Quick Edit" needs. Saved time increases with a higher limit set for `posts_per_screen` in the screen options drop down.
<?php
defined( 'ABSPATH' ) OR exit;
/**
* Plugin Name: (WCM) Faster Admin Post Lists
* Description: Reduces the queried fields inside WP_Query for WP_Post_List_Table screens
* Author: Franz Josef Kaiser <[email protected]>
* AuthorURL: http://unserkaiser.com
* License: MIT
*/