Skip to content

Instantly share code, notes, and snippets.

View philipdowner's full-sized avatar

Philip Downer philipdowner

View GitHub Profile
@philipdowner
philipdowner / wp-team-post-save-link-user.php
Last active April 2, 2018 16:07 — forked from chaance/wp-team-post-save-link-user.php
Function to dynamically sync CPT team posts with WP users. The post type requires custom meta fields for linked_author (user ID) and email.
<?php
/**
* Create new users to match team members.
*
* @param integer $post_id Post ID.
*/
function xx_team_post_save_link_user( $post_id ) {
$user_email = get_post_meta( $post_id, 'email', true );
$author_id = (int)get_post_meta( $post_id, 'linked_author', true );
@philipdowner
philipdowner / Contract Killer 3.md
Last active September 21, 2017 02:08 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers

Between [company name]

And [customer name].

Summary:

We’ll always do our best to fulfill 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.

So in short;