Skip to content

Early-bird lifetime licence: $199 once, for the first 200 buyers only. See the offer

Show the publish date and time in the posts list

Adds a column to the posts list with the exact date and time each post was, or will be, published. Handy when you schedule a lot.

  • Type PHP
  • Runs Everywhere (runs as WordPress loads)
  • Category Posts and editor
  • Tested with WordPress 7.1
PHP
<?php

add_filter(
	'manage_posts_columns',
	static function ( $columns ) {
		$columns['snipfire_published'] = __( 'Published' );
		return $columns;
	}
);
add_action(
	'manage_posts_custom_column',
	static function ( $column, $post_id ) {
		if ( 'snipfire_published' === $column ) {
			echo esc_html( get_the_date( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ), $post_id ) );
		}
	},
	10,
	2
);

In these packs

Move your snippets over this afternoon.

Importing changes nothing until you switch over, and your old shortcodes keep working.