__('Users', 'admin-column-custom'), ); $list = array_merge($list, wp_filter_object_list($wp_post_types, ['public' => true], 'AND', 'label')); unset($list['attachment']); if($field == 'key') { $list = array_keys($list); } return $list; } /* * Since 1.0.10 * * @param string $type * * @return string; */ function ad_column_get_option($type = '') { return get_option('ad_column_' . $type); }