Created
August 8, 2019 14:29
-
-
Save seanchayes/5fc48babee969b49ce6ae579169da01d to your computer and use it in GitHub Desktop.
Prevent featured image admin thumb column from appearing on a particular post type
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
add_filter( 'fiat/restrict_post_types', 'your_theme_name_restrict_post_types' ); | |
function your_theme_name_restrict_post_types( $post_types ) { | |
array_push($post_types, 'wc_user_membership' ); | |
return $post_types; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment