-
-
Notifications
You must be signed in to change notification settings - Fork 95
Recent Changes for Developers
This page lists changes made in recent versions of Extended CPTs that are of interest to developers, for example new arguments and other new features. For a complete changelog, see the Releases page.
It's now possible to specify a default
argument in a filter, so posts are filtered by that value by default. Example:
'admin_filters' => array(
'colour' => array(
'meta_key' => 'colour',
'default' => 'red',
),
),
A meta_key_exists
filter type has been introduced, which performs a real EXISTS
query on the meta key rather than the truthy meta value query that the meta_exists
filter performs. Example:
'help_needed' => array(
'meta_key_exists' => array(
'help_needed' => 'Help Needed',
),
),
No developer-facing changes.
An optional label
argument can now be passed to most filters to control the text used for the <label>
element for the field. A sensible default is used depending on the filter type, and it's unlikely you'll need to change this.
No developer-facing changes.
No developer-facing changes.
No developer-facing changes.
Any value that can be passed through strtotime()
can now be used when using an admin column that uses date_format
. Previously this was restricted to just Unix and MySQL format timestamps.