Skip to content

Instantly share code, notes, and snippets.

View linkhousemedia's full-sized avatar
✈️

Jason linkhousemedia

✈️
View GitHub Profile
@linkhousemedia
linkhousemedia / functions.php
Last active May 6, 2020 22:56
Remove Genesis breadcrumbs from WooCommerce Pages with help from @wpsmith
<?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() {
@linkhousemedia
linkhousemedia / woocommerce-memberships-restrict-content.php
Last active February 15, 2017 15:38
WooCommerce Memberships: Restrict Older Member Content with Genesis
<?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>';
}