They did have help on a construct very similar to what you have there - multiple tabs. I don't think what you're doing is that far off. Have you tried?
Where is this add_filter function? Being unfamiliar with this plug-in, I would need to see at least what it looks like (as I said, and possibly other functions it depends upon) to figure out how to make it happy while also producing no tab or a hidden tab.
If you're sure the forum for this plug-in will not support what you are attempting, perhaps try Stack-Overflow. At least someone there seems somewhat familiar with the plug-in.
I don't think anyone here has that experience, without that we would need to see more code as I've already indicated. As for the unset command, how to write it and where to put it, if I had to guess I would write it and place it like so (addition highlighted):
But again, experience with this plug-in would be a big plus in figuring this out. I have no idea if this use of unset would work here.Code:else { function add_custom_profile_tab3( $downloadtab ) { $downloadtab['download'] = array( 'name' => 'Downloads', 'icon' => 'um-faicon-bookmark', ); return $downloadtab; }unset( $downloadtab['download'] );}



Reply With Quote
Bookmarks