• Resolved sumsarisum

    (@sumsarisum)


    Some of the default columns in the Users section of WordPress were removed with this code:

    function remove_users_columns( $columns ) {
    
        unset( $columns['posts'] );
        unset( $columns['name'] );
    
        return $columns;
    }
    add_filter( 'manage_users_columns', 'remove_users_columns' );

    I’ve searched far and wide to undo the removal of columns but have come up short. Lend a hand?

Viewing 5 replies - 1 through 5 (of 5 total)
  • You would only have to remove this code. Is there anything wrong with that?

    Thread Starter sumsarisum

    (@sumsarisum)

    removing the code does not have the effect of returning the unset columns on the Users page ??

    Look at the top right of the page at Screen Options. Are the checkboxes possibly not set?

    And if the ticks are not there, is there possibly a second code that looks like this? Deactivate all plug-ins as a test.

    Thread Starter sumsarisum

    (@sumsarisum)

    >> is there possibly a second code that looks like this
    Ahh, found it in mu-plugins!
    Thank you threadi ??

    I’m glad you were able to find it. You are welcome to set the topic to solved.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Undoing removal of default columns on Users page’ is closed to new replies.