Last updated July 11, 2026, Version 0.34
Filters the label used for the event-date admin list column.
Lets post types that declare gatherpress-event-date support relabel the
column without having to drop and re-add it via WordPress core’s
manage_{$post_type}_posts_columns filter. A production post type can
surface the column as “Premiere date”, a release post type as “Release
date”, etc., while keeping the underlying datetime column key (and its
sortable behavior) unchanged.
Auto-generated Example
add_filter(
'gatherpress_event_datetime_label',
function(
string $label,
string $post_type
) {
// Your code here.
return $label;
},
10,
2
);
Parameters
string$labelDefault column label.string$post_typePost type the admin list is currently rendering.
Files
apply_filters(
'gatherpress_event_datetime_label',
sprintf(
/* translators: %s: Singular post type label, e.g. "Event". */
__( '%s date & time', 'gatherpress' ),
Utility::post_type_label( 'singular_name', $post_type )
),
$post_type
)