The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
<?php | |
/** | |
* Send admin notification to a different email address | |
*/ | |
function affwp_custom_registration_admin_email( $email ) { | |
// add the email here | |
$email = '[email protected]'; | |
return $email; |
<?php | |
/* | |
* Plugin name: Affiliate role on registration | |
*/ | |
function pw_affwp_set_role_on_registration( $affiliate_id = 0 ) { | |
$user_id = affwp_get_affiliate_user_id( $affiliate_id ); | |
$user = new WP_User( $user_id ); | |
$user->add_role( 'affiliate' ); |
<?php | |
/** | |
* Plugin Name: AffiliateWP - Restrict Referral Creation To Specific PMS Subscription Plans | |
* Plugin URI: http://affiliatewp.com | |
* Description: Allows you to restrict referral creation to specific PMS subscription plans | |
* Author: Tunbosun Ayinla, tubiz | |
* Author URI: https://bosun.me | |
* Version: 1.0 | |
*/ |
.header-image .site-title a { | |
background: url(images/logo.svg) center center no-repeat; | |
float: left; | |
min-height: 60px; | |
width: 100%; | |
@include media($medium-screen-up) { | |
background-position: left center; | |
} | |
} |
<?php | |
/** | |
* Genesis Sample. | |
* | |
* This file adds functions to the Genesis Sample Theme. | |
* | |
* @package Genesis Sample | |
* @author StudioPress | |
* @license GPL-2.0+ | |
* @link http://www.studiopress.com/ |
/* @author 14islands.com | |
* SASS mixins for future proof resolution media query | |
*/ | |
@mixin if-min-resolution($dppx) { | |
@include if-resolution(min, $dppx) { | |
@content; | |
} | |
} |
<?php | |
add_filter( 'pre_get_posts', 'tgm_io_cpt_search' ); | |
/** | |
* This function modifies the main WordPress query to include an array of | |
* post types instead of the default 'post' post type. | |
* | |
* @param object $query The original query. | |
* @return object $query The amended query. | |
*/ | |
function tgm_io_cpt_search( $query ) { |
Revised date: 07/11/2012
Between us [company name] and you [customer name]
We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |