WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Getting the 'About Me' section back after removing it (3 posts)

  1. Robert
    Member
    Posted 2 years ago #

    A while back I removed the 'About Me' bio field using the hack here:

    http://wordpress.org/support/topic/remove-the-bio-section-from-user-profile

    Anybody know if it is possible to get it back?

  2. Robert
    Member
    Posted 2 years ago #

    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');
    ?>
  3. Robert
    Member
    Posted 2 years ago #

    Uh, nevermind - just had to comment it out and it came right back :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.