Skip to content

Instantly share code, notes, and snippets.

@nvourva
Created November 7, 2019 14:35
Show Gist options
  • Save nvourva/060a59970302b2c735ce62af9d0cceb4 to your computer and use it in GitHub Desktop.
Save nvourva/060a59970302b2c735ce62af9d0cceb4 to your computer and use it in GitHub Desktop.
Manage post list columns on Noozbeat
remove_filter( 'manage_edit-post_columns', 'ci_theme_post_edit_columns' );
add_filter( 'manage_edit-post_columns', 'ci_theme_post_edit_all_columns', 99 );
if ( ! function_exists( 'ci_theme_post_edit_all_columns' ) ) :
function ci_theme_post_edit_all_columns( $columns ) {
$new_column['in_front'] = __( 'In front page', 'ci-theme' );
array_splice( $columns, 2, 0, $new_column );
return $columns;
}
endif;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment