The code below changes the $typenow global variable. I am pretty sure this is illegal and it breaks the ‘Admin Columns’ plugin in my case.
Please fix.
/**
* Remove WP SEO admin columns from post list tables
* @param boolean $show_columns [description]
* @return [type] [description]
*/
public function remove_admin_columns ( $show_columns = true ) {
global $typenow;
// Ensure that correct post type is set
if( ! isset( $typenow ) || ! $typenow ) {
$typenow = ‘post’;
}
// Hide admin columns for selected post types
if( $this->hide_from_post_type( $typenow, ‘columns’ ) ) {
$show_columns = apply_filters( $this->_token . ‘_show_admin_columns’, false );
}
return $show_columns;
} // End remove_admin_columns ()
Hello Hugh,
I downloaded the plug-inn WordPress SEO Tamer, but i don’t see anything from it in my dashboard. And on the pages i can only fill in the standard “meta title” , ” meta description” and “meta keywords” but i don’t see any colored points indicating the SEO status.
I seleted all the WP SEO columns from the screen options tab. And also tried it when they where deselected. No results.
I also tried to switch from theme, but no result.
Any options?
]]>I get an error while I try to save settings. Error reads:
Warning: in_array() expects parameter 2 to be array, string given in /home/.../public_html/wp-content/plugins/wp-seo-tamer/includes/lib/class-wordpress-seo-tamer-admin-api.php on line 112
It only shows up when I try to save settings with both boxes (Post & Pages) unchecked.
It desn’t matter if I try it for “Hide columns for these post types:” or “Hide meta box for these post types:”
For “Hide fields for these taxonomies:” it happens after all 3 boxes are unchecked.
After warning happens, no settings are updated.
How do I fix it?
]]>The plugin works very well. I have one issue with it – I do use the category specific settings in Yoast. The plugin hides them. It would be nice if the user could choose which information he wants to hide.
]]>