Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to remove Occupation & Interest META data?

In case anyone is curious, I created the following plugin to remove the Occupation and Interests user profile meta data.

<?php

/*

Plugin Name: My Profile Fields

Description: My profile fields for my lovely forums

Version 1.0

*/

function my_profile_fields( $fields ) {

unset( $fields ); /* removes the Occupation profile field: */

unset( $fields ); /* removes the Interests profile field: */

return $fields;

}

add_filter( ‘get_profile_info_keys’, ‘my_profile_fields’ );

?>

Skip to toolbar