Skip to content

Instantly share code, notes, and snippets.

View philiparthurmoore's full-sized avatar
🐷
Focusing

Philip Arthur Moore philiparthurmoore

🐷
Focusing
View GitHub Profile
@philiparthurmoore
philiparthurmoore / wporg-theme-developer-handbook-intro.md
Last active January 16, 2016 17:25
The WordPress.org Theme Developer Handbook Introduction

[Note: The style that follows is what I would consider "somewhat conversational American English". Please feel free to edit at will to fit the overall needs of the Theme Developer Handbook introduction.]

[Note: It might make sense to put the "Your First Theme" section just underneath the "Getting Started with WordPress Theme Development" introduction text to give new theme developers an immediate sense of accomplishment for making their first theme.]

Getting Started with WordPress Theme Development

[TODO: Introduction Text]

The GPL

<?php
/**
* _s Theme Options
*
* @package _s
* @since _s 1.0
*/
/**
* Register the form setting for our _s_options array.
@philiparthurmoore
philiparthurmoore / wpcom-pub-fallback-cb
Created January 29, 2013 15:37
Run an ack for 'fallback_cb' to gather information on how menus are being used in public WordPress.com themes. See: http://make.wordpress.org/core/2013/01/29/menus-office-hours-recap-jan-28/
fauna/header.php:51: <?php wp_nav_menu( array( 'container' => false, 'theme_location' => 'primary', 'fallback_cb' => 'fauna_page_menu' ) ); ?>
spectrum/header.php:51: <?php wp_nav_menu( array( 'container' => false, 'theme_location' => 'primary', 'fallback_cb' => 'spectrum_page_menu' ) ); ?>
next-saturday/header.php:41: <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary', 'fallback_cb' => '' ) ); ?>
ocean-mist/header.php:32: <?php wp_nav_menu( array( 'container' => false, 'menu_class' => 'pagetabs', 'theme_location' => 'primary', 'fallback_cb' => 'oceanmist_page_menu' ) ); ?>
neo-sapien-05/top-menu.php:4:<?php wp_nav_menu( array( 'container' => false, 'theme_location' => 'primary', 'fallback_cb' => 'neosapien_page_menu' ) ); ?>
daydream/header.php:106: <?php wp_nav_menu( array( 'container' => false, 'theme_location' => 'primary', 'fallback_cb' => 'daydream_page_menu' ) ); ?>
freshy/header.php:43: <?php wp_nav_menu( array( 'container' => false, 'theme_location'
@philiparthurmoore
philiparthurmoore / wpcom-pub-register-nav-menu
Last active December 11, 2015 21:48
Run an ack for `register_nav_menu\(` to gather information on how menus are being used in public WordPress.com themes. See: http://make.wordpress.org/core/2013/01/29/menus-office-hours-recap-jan-28/
delicacy/functions.php:52: register_nav_menu( 'primary-menu', __( 'Primary Menu', 'delicacy' ) );
minileven/functions.php:54: register_nav_menu( 'primary', __( 'Primary Menu', 'jetpack' ) );
origin/functions.php:145: register_nav_menu( 'primary', __( 'Navigation', 'origin' ) );
vertigo/functions.php:49: register_nav_menu( 'primary', __( 'Primary Menu', 'vertigo' ) );
twentyeleven/functions.php:95: register_nav_menu( 'primary', __( 'Primary Menu', 'twentyeleven' ) );
strange-little-town/functions.php:43: register_nav_menu( 'primary-menu', __( 'Primary', 'strange-little-town' ) );
ideation-and-intent/functions.php:58: register_nav_menu( 'primary', __( 'Primary Menu', 'ideation' ) );
grisaille/functions.php:27: register_nav_menu( 'main', 'Primary Navigation' );
autofocus/functions.php:45: register_nav_menu( 'primary', __( 'Primary Menu', 'autofocus' ) );
chaoticsoul/functions.php:7:register_nav_menu( 'primary', __( 'Primary Menu', 'chaoticsoul' ) );
@philiparthurmoore
philiparthurmoore / gist:4665147
Created January 29, 2013 15:35
Run an ack for `register_nav_menus\(` to gather information on how menus are being used in public WordPress.com themes. See: http://make.wordpress.org/core/2013/01/29/menus-office-hours-recap-jan-28/
fauna/functions.php:49:register_nav_menus( array(
spectrum/functions.php:63:register_nav_menus( array(
next-saturday/functions.php:63: register_nav_menus( array(
ocean-mist/functions.php:114:register_nav_menus( array(
bouquet/functions.php:77: register_nav_menus( array(
neo-sapien-05/functions.php:19:register_nav_menus( array(
daydream/functions.php:192:register_nav_menus( array(
oulipo/functions.php:32:register_nav_menus( array( 'primary' => __( 'Primary Navigation', 'oulipo' ), ) );
zbench/functions.php:36: register_nav_menus(
wu-wei/functions.php:38: register_nav_menus( array(
@philiparthurmoore
philiparthurmoore / wpcom-pub-wp-nav-menu
Created January 29, 2013 15:35
Run an ack for "wp_nav_menu\( a" to gather information on how menus are being used in public WordPress.com themes. See: http://make.wordpress.org/core/2013/01/29/menus-office-hours-recap-jan-28/
fauna/header.php:51: <?php wp_nav_menu( array( 'container' => false, 'theme_location' => 'primary', 'fallback_cb' => 'fauna_page_menu' ) ); ?>
spectrum/header.php:51: <?php wp_nav_menu( array( 'container' => false, 'theme_location' => 'primary', 'fallback_cb' => 'spectrum_page_menu' ) ); ?>
delicacy/header.php:40: wp_nav_menu( array(
next-saturday/header.php:41: <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary', 'fallback_cb' => '' ) ); ?>
ocean-mist/header.php:32: <?php wp_nav_menu( array( 'container' => false, 'menu_class' => 'pagetabs', 'theme_location' => 'primary', 'fallback_cb' => 'oceanmist_page_menu' ) ); ?>
bouquet/header.php:70: <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
neo-sapien-05/top-menu.php:4:<?php wp_nav_menu( array( 'container' => false, 'theme_location' => 'primary', 'fallback_cb' => 'neosapien_page_menu' ) ); ?>
daydream/header.php:106: <?php wp_nav_menu( array( 'container' => false, 'theme_location' => 'prim
@philiparthurmoore
philiparthurmoore / wpcom-pub-theme-location
Created January 29, 2013 15:34
Run an ack for "'theme_location' =>" to gather information on how menus are being used in public WordPress.com themes. See: http://make.wordpress.org/core/2013/01/29/menus-office-hours-recap-jan-28/
fauna/header.php:51: <?php wp_nav_menu( array( 'container' => false, 'theme_location' => 'primary', 'fallback_cb' => 'fauna_page_menu' ) ); ?>
spectrum/header.php:51: <?php wp_nav_menu( array( 'container' => false, 'theme_location' => 'primary', 'fallback_cb' => 'spectrum_page_menu' ) ); ?>
delicacy/header.php:41: 'theme_location' => 'primary-menu',
next-saturday/header.php:41: <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary', 'fallback_cb' => '' ) ); ?>
ocean-mist/header.php:32: <?php wp_nav_menu( array( 'container' => false, 'menu_class' => 'pagetabs', 'theme_location' => 'primary', 'fallback_cb' => 'oceanmist_page_menu' ) ); ?>
bouquet/header.php:70: <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
neo-sapien-05/top-menu.php:4:<?php wp_nav_menu( array( 'container' => false, 'theme_location' => 'primary', 'fallback_cb' => 'neosapien_page_menu' ) ); ?>
daydream/header.php:106: <?php wp_nav_menu( array( 'container' => false, 'theme_lo
@philiparthurmoore
philiparthurmoore / gist:2010728
Created March 10, 2012 07:39
Creating DB Backups via SSH
mysqldump --opt --user=dbusername --password=dbpassword --host=db.hostname.com dbname > /path/to/db-backup.sql
@philiparthurmoore
philiparthurmoore / gist:1949513
Last active October 1, 2015 07:48
WordPress @Package Description Template
<?php
/**
* @package Theme_Name
*/
?>
@philiparthurmoore
philiparthurmoore / xcode-select
Created February 27, 2012 11:13
Xcode 4.3: Set proper path to Xcode after install
sudo /usr/bin/xcode-select -switch /Applications/Xcode.app/Contents/Developer
##
# Source: http://theoho.tumblr.com/post/17769119566/tips-for-broken-scripts-after-xcode-4-3-install
# Source: https://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/xcode-select.1.html
##