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 | |
| /** | |
| * Based on the work of @wpsmith https://gist.github.com/wpsmith/4950715 | |
| */ | |
| add_action( 'genesis_before', 'linkhouse_remove_genesis_breadcrumbs' ); | |
| /** | |
| * Remove Genesis Breadcrumbs from woocommerce | |
| */ | |
| function linkhouse_remove_genesis_breadcrumbs() { |
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 | |
| /*-----------------------------------------------------------------------------------*/ | |
| /* Remove Membership Content conditionally if content is older and subscription is | |
| /* crew member */ | |
| /*-----------------------------------------------------------------------------------*/ | |
| function insert_membership_upgrade_content(){ | |
| echo '<div class="woocommerce-info">Looking for our older content?</div> | |
| <p>Your membership plan does not <em>currently</em> include our back catalogue that\'s older than 7 days. In order to see all previous content, you can upgrade your plan to First Officer or Captain!</p> | |
| <p>Visit <a href="https://example.com/my-account/">My Account</a> and the "Subscriptions" tab to upgrade.</p>'; | |
| } |