Skip to content

Instantly share code, notes, and snippets.

View tatemz's full-sized avatar

Tate Barber tatemz

View GitHub Profile
@tatemz
tatemz / class-page-object.php
Created August 2, 2014 21:36
How to Optimize Your WordPress Metadata
<?php
class Page_Object {
public $ID;
public $original_post;
public $data = array();
public function __construct( $id ) {
@tatemz
tatemz / race-1.php
Last active August 29, 2015 14:02
A gist for showing how WordPress actions and filters can be used.
<?php
// The starting line
start();
// 26 mile markers
for ( $mile = 1; $mile <= 26; $mile++ ) {
if ( $mile == 13 ) // Halfway mark
halfway_mark();
@tatemz
tatemz / easy_transfer.sh
Last active August 29, 2015 14:01
This is an easy way to transfer files with wget via ftp protocol.
#!/bin/bash
wget -rv -nc --timeout=15 --random-wait password="SomeSecurePassword" ftp://username@domain.com/path/to/webdir/
<?php
class WCFAY_Plugin_Settings {
public function __construct() {
}
public function create_page() {
}
public function register_settings() {