Created
December 10, 2020 07:32
-
-
Save digamber89/7d536b24eb2a49ce3bd525759422a729 to your computer and use it in GitHub Desktop.
Membership Restriction for Zoom Sidebar
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 | |
function cm_woo_membership_restrict_content_start(){ | |
ob_start(); | |
} | |
add_action( 'vczoom_single_content_right','cm_woo_membership_restrict_content_start', 1 ); | |
function cm_woo_membership_restrict_content_end(){ | |
$content = ob_get_clean(); | |
echo do_shortcode('[wcm_restrict]'.$content.'[/wcm_restrict]'); | |
} | |
add_action( 'vczoom_single_content_right','cm_woo_membership_restrict_content_end', 100 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment