Been looking everywhere, but I can't seem to find a solution..
When you view your profile, you see 'Primary Blog' somewhere on the top of the page. I want to hide that from the viewers (it's not of any importance to the users and it'll only confuse 'em when it stays there).
Tried to comment it in user-edit.php, but since it's not in there I was unable to do so. Does anyone know where/how to disable the viewing of 'Primary Blog'?
Been looking everywhere, but I can't seem to find a solution..
When you view your profile, you see 'Primary Blog' somewhere on the top of the page. I want to hide that from the viewers (it's not of any importance to the users and it'll only confuse 'em when it stays there).
Tried to comment it in user-edit.php, but since it's not in there I was unable to do so. Does anyone know where/how to disable the viewing of 'Primary Blog'?
Responses (5)
Member — 18th December 2008 12:32 #
Okay, just found the function that makes the dropdown:
choose_primary_blog()in wpmu-functions.phpErstwhile founder — 18th December 2008 15:58 #
Hiya,
Just open up wp-includes/wpmu-default-filters.php and remove this line:
add_action ( 'profile_personal_options', 'choose_primary_blog' );
Thanks,
Andrew
Member — 18th December 2008 17:58 #
Had the function commented out already, but commenting out the action in wpmu-default-filters.php makes more sense (to me that is ;)), so changed it.
Thanks! :)
Erstwhile founder — 18th December 2008 18:45 #
If you don't want to make any hacks you can toss this into a php file and drop it into mu-plugins:
<?php
remove_action ( 'profile_personal_options', 'choose_primary_blog' );
?>
Thanks,
Andrew
Member — 18th December 2008 19:00 #
True, already forgot about that (since I didn't how/where the primary blog was added, I had no use for it)..
That's even a better solution :)
Become a member