Created
December 22, 2015 06:34
-
-
Save bekarice/861f249d04f3caef8631 to your computer and use it in GitHub Desktop.
WooCommerce Memberships: Remove "My Content" Type column from the Member Area
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 | |
// Only copy opening php tag if needed | |
// Removes the "Type" column from the "My Content" section of the member area | |
function sv_members_area_content_remove_column( $columns ) { | |
// unset the "type" column, which shows post, page, project, etc | |
if ( isset( $columns['membership-content-type'] ) ) { | |
unset( $columns['membership-content-type'] ); | |
} | |
return $columns; | |
} | |
add_filter( 'wc_memberships_members_area_my_membership_content_column_names', 'sv_members_area_content_remove_column' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment