Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter('manage_edit-section_columns', function ($columns) {
- $columns = array(
- 'cb' => 'cb',
- 'title' => 'Заголовок',
- 'priority' => 'Приоритет'
- );
- return $columns;
- }, 4);
- add_filter('manage_section_posts_custom_column', function ($column_name, $post_id) {
- if ($column_name == 'priority') {
- echo get_post_meta($post_id, 'priority', true);
- }
- }, 5, 2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement