Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Robert

    (@redrings)

    FYI – this is the one I used:

    <?php
    	// Callback function to remove default bio field from user profile page
    	function remove_plain_bio($buffer) {
    		$titles = array('#<h3>About Yourself</h3>#','#<h3>About the user</h3>#');
    		$buffer=preg_replace($titles,'<h3>Password</h3>',$buffer,1);
    		$biotable='#<h3>Password</h3>.+?<table.+?/tr>#s';
    		$buffer=preg_replace($biotable,'<h3>Password</h3> <table class="form-table">',$buffer,1);
    		return $buffer;
    	}
    
    	function profile_admin_buffer_start() { ob_start("remove_plain_bio"); }
    
    	function profile_admin_buffer_end() { ob_end_flush(); }
    
    	add_action('admin_head', 'profile_admin_buffer_start');
    	add_action('admin_footer', 'profile_admin_buffer_end');
    ?>
    Thread Starter Robert

    (@redrings)

    Uh, nevermind – just had to comment it out and it came right back ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Getting the 'About Me' section back after removing it’ is closed to new replies.