Created
October 14, 2020 06:32
-
-
Save yousufansa/c7005aa4bb304cb6fb9018afd0d646e3 to your computer and use it in GitHub Desktop.
MAS WPJMC - Remove Admin Fields ( Example: Company Tagline )
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
| if ( ! function_exists( 'mas_wpjmc_fields_remove_admin_fields' ) ) { | |
| function mas_wpjmc_fields_remove_admin_fields( $fields ) { | |
| unset( $fields['_company_tagline'] ); | |
| // unset( $fields['_company_since'] ); // You can unset other fields also like this | |
| return $fields; | |
| } | |
| } | |
| add_filter( 'company_manager_company_fields', 'mas_wpjmc_fields_remove_admin_fields', 10 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment