Timeline for How to Remove Certain Screen Options and Table Columns from post type in wp_list_table?
Current License: CC BY-SA 3.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 13, 2017 at 12:37 | history | edited | CommunityBot |
replaced http://wordpress.stackexchange.com/ with https://wordpress.stackexchange.com/
|
|
Mar 9, 2017 at 18:04 | history | edited | CommunityBot |
replaced http://screenshots.newclarity.net/ with https://screenshots.newclarity.net/
|
|
May 25, 2016 at 12:52 | comment | added | Rahil Wazir |
For future readers: If anyone don't see their column names listed within the $columns array, increase up the priority. Also manage_post_columns is filter hook so better to use add_filter (add_action works fine too). And for custom post type you can also use the filter manage_${post_type}_posts_columns filter to avoid adding conditional logic
|
|
Jul 4, 2012 at 1:03 | comment | added | MikeSchinkel | P.S. @MichaelEcklund Also, have you considered maybe getting PhpStorm + Zend Debugger? With it, all this knowledge would be at your fingertips too. :) | |
Jul 4, 2012 at 1:00 | comment | added | MikeSchinkel |
@MichaelEcklund As far as I know, I've already explained how to remove a custom column name from a custom post type; look in the $columns variable to see what element to unset() . Realize that I can't know in advance what someone might name the array index so it's going to require inspection such as with a var_dump($columns); exit; Or maybe I don't follow your question?
|
|
Jul 3, 2012 at 20:06 | comment | added | Michael Ecklund |
@MikeSchinkel Wow thanks. all I simply had to do was add_filter('wpseo_use_page_analysis', '__return_false'); ... and all of those cluttered columns are gone now. But let's say a plugin wasn't so graceful in providing hooks for it's users? Could you please update you answer geared for removing a custom column name from a custom post type? I can assure you I am not the only one in this community that could benefit from it. Aside from that, thanks for the detailed answer.
|
|
Jul 3, 2012 at 5:13 | comment | added | MikeSchinkel |
@MichaelEcklund What is 'wpseo-score' ?; are you using a plugin or theme that adds it, like maybe WordPress SEO by Yoast? Do any of these links help? gist.github.com/2927217 gist.github.com/2997070 wordpress.org/support/topic/…
|
|
Jul 3, 2012 at 0:31 | comment | added | Michael Ecklund | @MikeSchinkel How would I go about removing let's say, "wpseo-score" from the post type of let's say, "business"? | |
Jul 2, 2012 at 13:44 | vote | accept | Michael Ecklund | ||
Jun 29, 2012 at 16:20 | comment | added | MikeSchinkel | @toscho Thanks for noticing. I've been less than healthy and clients have been demanding, so back only a bit. | |
Jun 29, 2012 at 6:48 | comment | added | fuxia♦ | Awww, you’re back! :) | |
Jun 29, 2012 at 2:46 | history | answered | MikeSchinkel | CC BY-SA 3.0 |