/** * Plugin Name: Clean User Profile * Description: Modifiche pagina del profilo Utente. * Version: 07.07.2012 * Author: Luciano Matteucci * Author URI: http://www.webforyou2000.com */ ! defined( 'ABSPATH' ) and exit; add_action( 'personal_options', array ( 'T5_Hide_Profile_Bio_Box', 'start' ) ); /** * Captures the part with the biobox in an output buffer and removes it. * */ class T5_Hide_Profile_Bio_Box { /** * Called on 'personal_options'. * * @return void */ public static function start() { $action = ( IS_PROFILE_PAGE ? 'show' : 'edit' ) . '_user_profile'; add_action( $action, array ( __CLASS__, 'stop' ) ); ob_start(); } /** * Strips the bio box from the buffered content. * * @return void */ public static function stop() { $html = ob_get_contents(); ob_end_clean(); // remove the headline $headline = __( IS_PROFILE_PAGE ? 'About Yourself' : 'About the user' ); $html = str_replace( '