-
-
Notifications
You must be signed in to change notification settings - Fork 95
Recent Changes for Developers
John Blackbourn edited this page Nov 14, 2024
·
21 revisions
This page lists changes made in recent versions of Extended CPTs that are of interest to developers, for example new arguments and new features. For a complete changelog, see the Releases page.
No developer-facing changes.
Several changes that concern developers, including a bump to the minimum supported PHP version. See the release notes for details.
No developer-facing changes.
No developer-facing changes.
- PHP 8 support was added. There is no functional change to the library, just the platform dependency in
composer.json
was updated to allow the library to be installed with PHP 8.
- Some new filters were introduced. See the filters and actions documentation for all the details.
- The
block_editor
argument was introduced.
No developer-facing changes.
No developer-facing changes.
- The
post_author
filter now accepts anoptions
array or callback.
- Two new post type listing screen filters were introduced:
post_author
for an author dropdown, andpost_date
for a date picker. - The
title_icon
andtitle_cb
parameters were introduced for displaying a Dashicon or complex markup in post type listing screen column titles. -
The
dashboard_activity
argument was added to allow the post type to be included in theRecently Published
section of theActivity
widget on the dashboard.
- It's now possible to specify a
default
argument in a filter, so posts are filtered by that value by default. -
A
meta_key_exists
filter type has been introduced, which performs a realEXISTS
query on the meta key rather than the truthy meta value query that themeta_exists
filter performs.
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 usesdate_format
. Previously this was restricted to just Unix and MySQL format timestamps.