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 | |
/** | |
* Returns the menu object associated with a particular menu location. | |
* | |
* You could then get the slug of the menu, for example, via | |
* $menu_object->slug (or whatever variable you saved the menu object as). | |
* | |
* @param string $location_slug | |
* |
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 if ( has_excerpt() ) : ?> | |
<span><?= get_the_excerpt(); ?></span> | |
<?php endif; ?> |
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 | |
/** | |
* Register conditional locaton rules for Advanced Custom Fields | |
* | |
* @package ${NAMESPACE}. | |
* @since 1.0.0 | |
* @author iamnickdavis | |
* @link http://iamnickdavis.com | |
* @license GNU General Public License 2.0+ | |
*/ |
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
<div class="pricing-table"> | |
<div class="pricing-column one-fifth first"> | |
<div class="pricing-content"> | |
<h4>Start Right</h4> | |
<p>A wonderful piece of kit.</p> | |
<ul> | |
<li>Two Pens</li> | |
<li>A Ruler</li> | |
<li>A Notepad & more</li> |
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
<div class="pricing-table"> | |
<div class="pricing-column one-fourth first"> | |
<div class="pricing-content"> | |
<h4>Start Right</h4> | |
<p>A wonderful piece of kit.</p> | |
<ul> | |
<li>Two Pens</li> | |
<li>A Ruler</li> | |
<li>A Notepad & more</li> |
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
[submodule "vendor/library-name"] | |
path = vendor/library-name | |
url = https://github.com/nickdavis/library-name | |
[submodule "vendor/library-name-2"] | |
path = vendor/library-name-2 | |
url = https://github.com/nickdavis/library-name-2 |
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
# Ignore everything # | |
** | |
!vendor/ | |
vendor/** | |
!wp-content/ | |
wp-content/** | |
!wp-content/themes/ | |
!wp-content/plugins/ | |
wp-content/themes/** | |
wp-content/plugins/** |
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
<p>Chris Guillebeau in "The $100 Startup" writes that people really care about<br/>having more of: <strong>Love</strong>, <strong>Money</strong>, <strong>Acceptance</strong> and <strong>Free Time</strong>.</p> | |
<ul class="featured"> | |
<li>Saves you time</li> | |
<li>Makes you feel part of the community</li> | |
<li>Saves you money</li> | |
</ul> |
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 | |
add_action( 'init', 'check_contributor_capabilities', 0 ); | |
function check_contributor_capabilities() { | |
ddd( get_role( 'contributor' ) ); | |
} |