Skip to content

Instantly share code, notes, and snippets.

@atwellpub
atwellpub / pdf.php
Created October 7, 2014 20:19
Modded file that prevents js file from loading on wp-lead post type
<?php
/*
Plugin Name: Gravity Forms PDF Extended
Plugin URI: http://www.gravityformspdfextended.com
Description: Gravity Forms PDF Extended allows you to save/view/download a PDF from the front- and back-end, and automate PDF creation on form submission. Our Business Plus package also allows you to overlay field onto an existing PDF.
Version: 3.5.10
Author: Blue Liquid Designs
Author URI: http://www.blueliquiddesigns.com.au
self::$endpoint = 'leads';
/* Tag Include Test - 1 tag */
self::$data = array(
'results_per_page' => 1,
'include_tags' => array( 'hello' )
);
Response:
{
# Travis CI Configuration File
# Tell Travis CI we're using PHP
language: php
# PHP version used in first build configuration.
php:
- "5.5"
# WordPress version used in first build configuration.
@atwellpub
atwellpub / functions.php
Created September 26, 2014 18:25
Remove all tracking classes on page 106
<?php
add_action(‘wp_head’, ‘kill_form_tracking_for_specific_pages’);
if (!function_exists(‘kill_form_tracking_for_specific_pages’)) {
function kill_form_tracking_for_specific_pages(){
// targeting page ID 106. Replace with your specific page ID
if (is_page(106)) {
echo ‘
<script type=”text/javascript”>
jQuery(document).ready(function($) {
@atwellpub
atwellpub / index.php
Created September 25, 2014 19:58
Example landing page index.php
<?php
/**
* Template Name: Demo Template
*
* @package WordPress Landing Pages
* @author David Wells
* @link http://www.inboundnow.com
* @version 1.0
*/
@atwellpub
atwellpub / config.php
Last active August 29, 2015 14:06
Example landing page config.php
<?php
/**
* WordPress Landing Page Config File
* Template Name: Demo Template
* @package WordPress Landing Pages
* @author Inbound Now
*
* This is a demo template for developers and designers to use as a reference for building landing page templates
* for Wordpress Landing Pages Plugin http://wordpress.org/plugins/landing-pages/
*
@atwellpub
atwellpub / example_wrapper.php
Created September 22, 2014 00:38
Example wrapper that shows how we would source 300 leads randomly given a condition and then add tags to those leads.
<?php
/* This example seeks to help developers understand how to access the /leads/ endpoint.
*
*/
if ( !class_exists( 'Example_API_Calls' )) {
class Example_API_Calls {
static $key;
@atwellpub
atwellpub / wrapper.php
Last active August 29, 2015 14:06
This example seeks to help developers understand how to access the /analytics/track-link/ endpoint.
<?php
/**
* This example seeks to help developers understand how to access the /analytics/track-link/ endpoint.
*/
if ( !class_exists( 'Example_API_Calls' )) {
class Example_API_Calls {
@atwellpub
atwellpub / response.json
Last active August 29, 2015 14:06
Example JSON Response when endpoint /analytics/track-link/ is accessed
{
"url": "http:\/\/inboundsoon.dev\/inbound\/v6io5n87"
}
@atwellpub
atwellpub / wrapper.php
Last active August 29, 2015 14:06
This example seeks to help developers understand how to access the /field-map/ endpoint.
<?php
/**
* This example seeks to help developers understand how to access the /field-map endpoint.
*/
if ( !class_exists( 'Example_API_Calls' )) {
class Example_API_Calls {