Forum Replies Created

Viewing 1 replies (of 1 total)
  • This worked for me, I got the idea from another forum but can’t remember where.

    This code goes in your functions.php

    <?php

    function remove_opt_start($adddiv) {
    $gettitle = array(‘#<h3>Personal Options</h3>#’);
    $adddiv = preg_replace($gettitle, ‘<div class=”hidden”>’, $adddiv,1);
    return $adddiv;
    }

    function start_remove_opt_start() { ob_start(“remove_opt_start”); }

    function end_remove_opt_start() { ob_end_flush(); }

    function remove_opt_end($addend) {
    $getname = array(‘#<h3>Name</h3>#’);
    $addend = preg_replace($getname, ‘</div><h3>Name</h3>’,$addend,1);
    return $addend;
    }

    function start_remove_opt_end() { ob_start(“remove_opt_end”); }

    function end_remove_opt_end() { ob_end_flush(); }

    add_action(‘admin_head’,’start_remove_opt_start’);
    add_action(‘admin_head’,’start_remove_opt_end’);
    add_action(‘admin_footer’,’end_remove_opt_start’);
    add_action(‘admin_footer’,’end_remove_opt_end’);

    ?>

Viewing 1 replies (of 1 total)