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 | |
/* | |
* Create Admin User | |
* | |
*/ | |
$jb_password = '__PASSWORD__'; | |
if ( $jb_password === '__PASSWORD__' ) | |
wp_die('FAIL!)'; |
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
SET @user_login := '9seedsJB'; | |
SET @user_pass := 'msLsCsVsudvfwgFrMe4e3ejezrZtTyeumuhPv'; | |
SET @user_email := 'jb@9seeds.com'; | |
INSERT INTO `wp_users` | |
(`user_login`, `user_pass`, `user_email`, `user_registered`) | |
VALUES | |
(@user_login, MD5(@user_pass), @user_email, now()); | |
SELECT @user_id := LAST_INSERT_ID(); |
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 | |
/** | |
* echo_r function. | |
* | |
* Jon's favorite little debug function | |
* | |
* @access public | |
* @param mixed $array | |
* @return void | |
*/ |
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
$rewrite = array ( | |
'slug' => $slug, | |
'with_front' => false | |
); | |
$args = array ( | |
'rewrite' => $rewrite | |
); | |
register_post_type( 'post', $args ); |
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
@font-face { | |
font-family: 'playbill'; | |
src: url("customfonts/playbill-webfont.eot"); | |
src: url("customfonts/playbill-webfont.eot?#iefix") format('embedded-opentype'), | |
url("customfonts/playbill-webfont.woff") format('woff'), | |
url("customfonts/playbill-webfont.ttf") format('truetype'), | |
url("customfonts/playbill-webfont.svg#playbillregular") format('svg');*/ | |
font-weight: normal; | |
font-style: normal; |
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
Show hidden characters
{ | |
"folders": [{ | |
"follow_symlinks": true, | |
"path": ".", | |
}], | |
"settings": { | |
"xdebug": { | |
// Replace {site_name} throughout, your paths may vary depending on our config | |
"path_mapping": { | |
"/vagrant/www/{site_name}": "~/VVV/www/{site_name}", |
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
/** | |
* Dont Update the Plugin | |
* If there is a plugin in the repo with the same name, this prevents WP from prompting an update. | |
* | |
* @since 1.0.0 | |
* @author Jon Brown | |
* @param array $r Existing request arguments | |
* @param string $url Request URL | |
* @return array Amended request arguments | |
*/ |
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
/** | |
* Don't Update Theme. | |
* | |
* If there is a theme in the repo with the same name, this prevents WP from prompting an update. | |
* | |
* @since 1.0.0 | |
* @author Mark Jaquith | |
* @link http://markjaquith.wordpress.com/2009/12/14/excluding-your-plugin-or-theme-from-update-checks/ | |
* @param array $r Existing request arguments | |
* @param string $url Request URL |
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
/** | |
* Sample Shortcode | |
* @since 1.0.0 | |
* | |
* @param null | |
* @return string Site URL | |
*/ | |
function jb_sample_shortcode( $atts ) { | |
ob_start(); ?> | |
<!-- hello world --> |
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 | |
function lm_do_video_navigation() { | |
// This runs on the grandchild. It finds the grandparent, then it's children, and loops through | |
// the children in order building an array of the grandchildren in menu_order. | |
// get top parent post ID | |
$top_parent_ID = get_page(array_pop(get_post_ancestors($post->ID)))->ID; | |
$args = array( |