Skip to content

Instantly share code, notes, and snippets.

View seedprod's full-sized avatar

John Turner seedprod

View GitHub Profile
// Multisite Initial Install License Check
function seed_cspv5_check_license_updater(){
if(get_option('seed_cspv5_a') === false){
add_option('seed_cspv5_license_key',SEED_CSP_API_KEY);
add_option('seed_cspv5_token',strtolower(wp_generate_password(32,false, false)));
$params = array(
'action' => 'info',
'license_key'=> SEED_CSP_API_KEY,
'slug' => SEED_CSPV5_SLUG,
<?php
// Record Source
try {
$seedprod_source = $_COOKIE['seedprod_source'];
$source = '';
if(!empty($seedprod_source)){
$source = explode("|",$seedprod_source)[0];
$dt = date("Y-m-d H:i:s",explode("|",$seedprod_source)[1]);
$order = Order::find($data['order']->id);
<?php
// Set cookie of free user
add_action( 'wp', 'track_upsell' );
function track_upsell() {
if(is_page('ultimate-coming-soon-page-vs-coming-soon-pro')){
if(!isset($_COOKIE['seedprod_source'])) {
setcookie( 'seedprod_source', 'free_plugin|'.time(), strtotime("+1 year"),"/","seedprod.com" );
}
<?php
// Set cookie of free user
add_action( 'wp', 'free_user_cookie' );
function free_user_cookie() {
//if(is_page('features') && isset($_GET['utm_campaign']) && ($_GET['utm_campaign'] == 'coming-soon-pro-from-wordpress.org' || $_GET['utm_campaign'] == 'coming-soon-link-in-plugin' || $_GET['utm_campaign'] == 'coming-soon-banner-in-plugin')){
if(is_page('ultimate-coming-soon-page-vs-coming-soon-pro')){
if(!isset($_COOKIE['seedprod_source'])) {
setcookie( 'seedprod_source', 'free_plugin|'.time(), strtotime("+1 year"),"/","seedprod.com" );
{"action":"seed_cspv5_save_page","_wpnonce":"68aaaf4bf0","disabled_fields":"","first_run":"","page_id":"2","theme":"14","name":"Coming Soon Page","logo":"http:\/\/testdrive.seedprod.com\/chantel450hotmailcom\/wp-content\/uploads\/sites\/6189\/2017\/07\/Special-Needs_sd12.jpg","headline":"Coming Soon","description":"<h4><strong>Introducing Special Needs Reviews, the first review site specifically tailored to NYC special needs population.\u00a0<\/strong><\/h4><div id=\"seed-csp4-page\"><div id=\"seed-csp4-content\"><div id=\"seed-csp4-description\"><p>\u00a0<\/p><p>As a parent of a child with autism or other special needs, you know better than anyone how important finding just the right doctors, therapists, schools, and more for your precious child can be.But you\u2019ve learned exactly how overwhelming making these decisions can be, too.<\/p><p><strong>Now, for the first time, there\u2019s a better way. <\/strong><\/p><p>\u00a0<\/p><ul><li style=\"text-align: left;\">Imagine having hundreds of honest reviews o
function custom_loginlogo() {
echo '<style type="text/css">
h1 a {background-image: url('.get_bloginfo('template_directory').'/images/login_logo.png) !important; }
</style>';
}
add_action('login_head', 'custom_loginlogo');
<script>
jQuery( document ).ready(function($) {
$("#cspio-langs").select2('open');
});
</script>
html{-webkit-background-size: contain;-moz-background-size: contain;-o-background-size: contain;background-size: contain;}
<script type="text/javascript">
var google_conversion_id = 963482837;
var google_custom_params = window.google_tag_params;
var google_remarketing_only = true;
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
</script>