Skip to content

Instantly share code, notes, and snippets.

View ChrisHursty's full-sized avatar
💭
🥑

Chris Hurst ChrisHursty

💭
🥑
View GitHub Profile
Given there is a shortcode 'shortcode_to_test'
When the shortcode is rendered
Then it should return '<h2>Hello Planet Earth!</h2>'
@ChrisHursty
ChrisHursty / RemoveCustomizerSections.php
Created February 12, 2019 18:07 — forked from 21stcenturyblogger/RemoveCustomizerSections.php
Remove common sections or panels from the WordPress theme customizer
// Remove unwanted sections or panels in the theme customizer
// Add to child theme fuctions.php or child_theme_functions.php or child-theme-customizer.php
function remove_customizer_options_sections(){
global $wp_customize;
// Normal customizer sections
//$wp_customize->remove_panel('nav_menus'); // Menus section
//$wp_customize->remove_section('title_tagline'); // Site Identity section
@ChrisHursty
ChrisHursty / customposts.php
Created May 12, 2015 09:57
Custom Post Type, Taxonomy & Rewrite rules for slug
/**
* create_news_post_type function. Create a News post type.
*
* @access public
* @return void
*/
// POSTTYPES.PHP
function create_news_post_type() {
$labels = array(

Keybase proof

I hereby claim:

  • I am ChrisHursty on github.
  • I am chrishursty (https://keybase.io/chrishursty) on keybase.
  • I have a public key whose fingerprint is 7309 72D3 FB3C D8A5 3449 C764 1D04 4425 C237 7534

To claim this, I am signing this object:

vagrant box add caseproof-lamp https://s3.amazonaws.com/caseproof/caseproof-lamp.box
vagrant init caseproof-lamp
vagrant up