[wp-trac] [WordPress Trac] #32499: Filter: get_hidden_columns
WordPress Trac
noreply at wordpress.org
Tue May 26 18:33:06 UTC 2015
#32499: Filter: get_hidden_columns
-----------------------------+-----------------------------
Reporter: Compute | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: trunk
Severity: normal | Keywords:
Focuses: |
-----------------------------+-----------------------------
Today I came across a client that wanted alot of new columns to the admin
list screen. As we're also using the WordPress SEO plugin the columns are
quickly filled. I would like to hide these columns by default, but for my
client to be able to enable the columns again.
{{{
add_filter( 'get_user_option_manageedit-coursecolumnshidden',
hide_wp_seo_columns' );
public function hide_wp_seo_columns( $hidden ) {
if ( empty( $hidden ) ) {
$hidden = [
'wpseo-score',
'wpseo-title',
'wpseo-metadesc',
'wpseo-focuskw',
];
}
return $hidden;
}
}}}
Even if this is working, I believe this would be a quite useful filter
inside the get_hidden_columns() function instead. Just like
get_hidden_meta_boxes().
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32499>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list