This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter('wp_maintenance_mode_status_code', 'rhyswynne_return_200',10,3); | |
function rhyswynne_return_200() { | |
return 200; | |
} | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Theme Name: Twenty Thirteen Child | |
Description: Twenty Thirteen Demo Child Theme for WordCamp. | |
Author: Rhys Wynne | |
Author URI: http://winwar.co.uk | |
Template: twentythirteen | |
Version: 1.0.0 | |
Text Domain: twenty-thirteen-child | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Theme Name: Twenty Thirteen Child | |
Description: Twenty Thirteen Demo Child Theme for WordCamp. | |
Author: Rhys Wynne | |
Author URI: http://winwar.co.uk | |
Template: twentythirteen | |
Version: 1.0.0 | |
Text Domain: twenty-thirteen-child | |
*/ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* The template for displaying all pages | |
* | |
* This is the template that displays all pages by default. | |
* Please note that this is the WordPress construct of pages and that other | |
* 'pages' on your WordPress site will use a different template. | |
* | |
* @package WordPress | |
* @subpackage Twenty_Thirteen |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// This file is loaded as well as the parent's (twentythirteen) child theme, so name your functions with a prefix. Like below:- | |
function twentythirteen_child_title( $title, $sep ) { | |
return "Hello!"; | |
} | |
// This function is hooked in after the theme is set up. It removes the default title and replaces it with the word "Hello!". Don't run on a live site! | |
function twentythirteen_child_change_title() { | |
remove_filter( 'wp_title', 'twentythirteen_wp_title' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Function: Include Parent Theme styles.css, the proper way. | |
*/ | |
function child_theme_enqueue_stylesheets() { | |
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); | |
} | |
add_action( 'wp_enqueue_scripts', 'child_theme_enqueue_stylesheets' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Activation Plugin Example | |
Plugin URI: | |
Description: Adds an Activation Hook & Displays a notice after 10 days. | |
Author: Winwar Media | |
Version: 0.1-alpha | |
Author URI: http://winwar.co.uk/ | |
Text Domain: | |
Domain Path: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"font_size": 12.0, | |
// Set to true to turn spell checking on by default | |
"spell_check": false, | |
// The number of spaces a tab is considered equal to | |
"tab_size": 4, | |
// Set to true to insert spaces when tab is pressed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ "keys": ["command+shift+i"], "command": "reindent", "args": {"single_line": false} }, | |
{ "keys": ["ctrl+s"], "command": "snippets" } | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function peadig_remote_request( $key, array $payload ) { | |
$body = false; | |
if ( false === ( $body = get_site_transient( 'peadig_rapi_'.$key ) ) ) { | |
$body = wp_remote_post( 'http://api.wordpress.org/plugins/info/1.0/', array( 'body' => $payload) ); | |
// cache for 3 days | |
set_site_transient( 'peadig_rapi_'.$key, $value, 60 * 60 * 24 * 3); | |
} | |
return $body; | |
} |
OlderNewer