Skip to content

Recent Changes for Developers

John Blackbourn edited this page Aug 9, 2019 · 22 revisions

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.

4.2.6 (2019-08-08)

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',
	),
),

4.2.5 (2019-06-27)

No developer-facing changes.

4.2.4 (2019-06-17)

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.

4.2.3 (2019-09-08)

No developer-facing changes.

4.2.2 (2018-12-06)

No developer-facing changes.

4.2.1 (2018-10-04)

No developer-facing changes.

4.2.0 (2017-11-01)

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.

Clone this wiki locally