Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function add_column_header_298736( $defaults ) {
- $defaults[ 'image' ] = 'Image';
- return $defaults;
- }
- add_filter( 'manage_results_posts_columns', 'add_column_header_298736', 20 );
- function add_column_content_298736( $column_name, $post_id ) {
- if ( $column_name == 'image' ) {
- // do stuff to retrieve your image
- }
- }
- add_action( 'manage_{your_post_type}_posts_custom_column', 'add_column_content_298736', 20, 2 );
Add Comment
Please, Sign In to add comment