This file contains 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 | |
/** | |
* For developers: WordPress debugging mode. | |
* | |
* Change this to true to enable the display of notices during development. | |
* It is strongly recommended that plugin and theme developers use WP_DEBUG | |
* in their development environments. | |
*/ | |
define( 'WP_DEBUG', true ); |
This file contains 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
/* Nested Ordered List */ | |
ol { | |
counter-reset: ol | |
} | |
li { | |
display: block | |
} |
This file contains 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 Row Meta | |
* | |
* Adds GitHub and translate links below the plugin description on the plugins page. | |
* Replace references to 'my-plugin' to reflect your plugin folder and file name. | |
* Update the GitHub Repo and Translation links. | |
* | |
* @param array $plugin_meta Plugin meta display array. |
This file contains 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: List Pages Shortcode Index | |
Plugin URI: https://gist.github.com/benhuson/9c419282d8e05fff6eeb | |
Description: Add-on for the <a href="https://wordpress.org/plugins/list-pages-shortcode/">List Pages Shortcode</a> plugin. | |
Author: Ben Huson | |
Version: 0.1 | |
Author URI: https://github.com/benhuson | |
*/ |
This file contains 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
/** | |
* jQuery Wrapper | |
*/ | |
( function( $ ) { | |
// Safe to use $ | |
} )( jQuery ); |
This file contains 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
{ | |
"url": "http://example.com/json", | |
"rates": [ | |
{ | |
"name": "Belgium", | |
"code": "BE", | |
"periods": [ | |
{ | |
"effective_from": "1996-01-01", | |
"rates": { |
This file contains 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
/** | |
* 100% height div across multiple browsers including mobile Safari. | |
* http://www.ethanhackett.com/?blog=window-height-100-on-mobile-safari-coding-solution | |
*/ | |
( function( $, window, undefined ) { | |
// First check to see if the platform is an iPhone, iPod, iPad (mobile Safari) | |
if ( /iP/.test( navigator.platform ) && /Safari/i.test( navigator.userAgent ) ) { | |
var mobileSafari = "Safari"; | |
} |
This file contains 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( $ ) { | |
$.fn.helloWorld = function( options ) { | |
// Establish our default settings | |
var settings = $.extend( { | |
text : 'Hello, World!', | |
color : null, | |
fontStyle : null, | |
complete : null |
This file contains 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 | |
/** | |
* WPSC Variation Group Name Display | |
* | |
* @param string $name Group name. | |
* @param WP_Term $group Group term object. | |
* @return string Group name. | |
*/ | |
function my_wpsc_vargrp_name( $name, $group ) { |
This file contains 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
if ( typeof yourFunctionName == 'function' ) { | |
yourFunctionName(); | |
} |
OlderNewer