This file contains hidden or 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 | |
| class AutoActivator { | |
| const ACTIVATION_KEY = 'youractivationkeyhere'; | |
| /** | |
| * AutoActivator constructor. | |
| * This will update the license field option on acf | |
| * Works only on backend to not attack performance on frontend | |
| */ |
This file contains hidden or 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 | |
| $view = Tribe__Tickets__Tickets_View::instance(); | |
| $event_id = get_the_ID(); | |
| $user_id = get_current_user_id(); | |
| $user_has_rsvp = $view->has_rsvp_attendees( $event_id, $user_id ); |
This file contains hidden or 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
| @media only screen and (max-width: 900px) { | |
| .site-description { | |
| color: #fff; | |
| opacity: 0.5; /* Remove or comment out this line */ | |
| padding: 0 0 9px; | |
| } | |
| } |
This file contains hidden or 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_filter( 'language_attributes', 'add_no_js_class_to_html_tag', 10, 2 ); | |
| /** | |
| * Add 'no-js' class to <html> tag in order to work with Modernizr. | |
| * | |
| * (Modernizr will change class to 'js' if JavaScript is supported). | |
| * | |
| * @since 1.0.0 | |
| * |
This file contains hidden or 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_filter( 'wp_dropdown_users_args', 'add_subscribers_to_dropdown', 10, 2 ); | |
| /** | |
| * Allow subscribers to be set as authors | |
| * | |
| * @link http://wordpress.stackexchange.com/a/216117 | |
| * | |
| * @since 1.0.0 | |
| * |
This file contains hidden or 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' ) ); | |
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 |