A Pen by Chris Hurst on CodePen.
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
Given there is a shortcode 'shortcode_to_test' | |
When the shortcode is rendered | |
Then it should return '<h2>Hello Planet Earth!</h2>' |
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
// 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 |
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
/** | |
* create_news_post_type function. Create a News post type. | |
* | |
* @access public | |
* @return void | |
*/ | |
// POSTTYPES.PHP | |
function create_news_post_type() { | |
$labels = array( |
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:
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
vagrant box add caseproof-lamp https://s3.amazonaws.com/caseproof/caseproof-lamp.box | |
vagrant init caseproof-lamp | |
vagrant up |