The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
<template> | |
<require from="style.css"></require> | |
<require from="list-group"></require> | |
<require from="pokemon.html"></require> | |
<section> | |
<h1>${message}</h1> | |
<hr/> | |
<h3>custom template</h3> |
<?php | |
$args = array( | |
// Normal query goes here // | |
'no_found_rows' => true, // counts posts, remove if pagination required | |
'update_post_term_cache' => false, // grabs terms, remove if terms required (category, tag...) | |
'update_post_meta_cache' => false, // grabs post meta, remove if post meta required | |
); |
<?php | |
/** | |
* Redirect users to custom URL based on their role after login | |
* | |
* @param string $redirect | |
* @param object $user | |
* @return string | |
*/ | |
function wc_custom_user_redirect( $redirect, $user ) { | |
// Get the first of all the roles assigned to the user |
<?php | |
/** | |
* Plugin Name: Settings Import / Export Example Plugin | |
* Plugin URI: http://pippinsplugins.com/building-a-settings-import-and-export-feature | |
* Description: An example plugin that shows how to create a settings import and export feature | |
* Author: Pippin Williamson | |
* Author URI: http://pippinsplugins.com | |
* Version: 1.0 | |
*/ |
# ----------------------------------------------------------------- | |
# .gitignore for WordPress @salcode | |
# ver 20150227 | |
# | |
# From the root of your project run | |
# curl -O https://gist.githubusercontent.com/salcode/b515f520d3f8207ecd04/raw/.gitignore | |
# to download this file | |
# | |
# By default all files are ignored. You'll need to whitelist | |
# any mu-plugins, plugins, or themes you want to include in the repo. |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |