@ ottomek
re: What would the snippet be to make the default entries Individuals?
The default for a new entry is an Individual, there is no need to make any changes. Am I misunderstanding the question?
re: I see where to change text/name but what is the ID for Individual entries?
Sorry, but I do not understand. Could you give more details?
re: We want to globally hide or remove several extra fieldsets we are not using for members (Logo, Messenger IDs, Social Media IDs, etc). Not from the Form extension but from within their user area completely when they login and update info.
Well, they could be unregistered, but that would also remove it them from Form but it already has options to hide and rearrange the fieldsets. Here’s the code snippet to remove Logo, Messenger IDs, Social Media IDs:
add_action( 'admin_init', 'cn_remove_metaboxes' );
function cn_remove_metaboxes() {
cnMetaboxAPI::remove( 'metabox-logo' );
cnMetaboxAPI::remove( 'metabox-messenger' );
cnMetaboxAPI::remove( 'metabox-social-media' );
cnMetaboxAPI::remove( 'metabox-logo' );
}
The one thing I am uncertain of is how this will affect Connections when adding/updating entries. The one thing that I am pretty certain is if an existing entry has data on one of these and it is then updated, that data will be “lost” because removing these will have the same effect (on submission) as removing the data when editing an entry. Depending on your needs, this may not even be an issue.
Hope that helps!
