Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Alex Gor

    (@alexgff)

    You can use this piece of code

    
    add_filter( 'wpglobus_manage_language_item', 'filter__wpglobus_manage_language_item', 10, 3 );
    function filter__wpglobus_manage_language_item( $output, $post, $language ) {
    	return '';
    }
    
    • This reply was modified 8 years, 2 months ago by Alex Gor.
    Thread Starter leskam

    (@uzumymw)

    Hmm that hook’s hides flags but i want to remove whole Language column. Is it possible ?

    Plugin Contributor Alex Gor

    (@alexgff)

    You can use

    
    if ( class_exists( 'WPGlobus' ) ) {
    	global $wp_filter;
    	if ( ! empty( $wp_filter["manage_{$post_type}_posts_columns"][10] ) ) {
    		unset( $wp_filter["manage_{$post_type}_posts_columns"] );
    	}	
    
    }	
    

    Please, see http://adambrown.info/p/wp_hooks/hook to get info what is
    “manage_{$post_type}_posts_columns” for your case

    • This reply was modified 8 years, 2 months ago by Alex Gor.
    • This reply was modified 8 years, 2 months ago by Alex Gor.
    Plugin Contributor Alex Gor

    (@alexgff)

    Starting from version WPGlobus 1.6.5 you can use filter
    ‘wpglobus_manage_posts_columns’
    to disable WPGlobus column that displayed in the Posts list table.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Disable / Hide language column in wp-admin’ is closed to new replies.