I know I hit you up on Roots Discourse before about extended-cpts support for models. I finally got around to changing it over and it works flawlessly with everything else still in tact.
Only difference is you can now add all the features that come with extended-cpts in 'config' => [] of your CPT or Taxonomy.
An alternative if you don't want to add the extra dependency is to merely just add detection for the register_extended_post_type / register_extended_taxonomy functions and otherwise use WordPress' defaults, but I do think extended-cpts is well maintained enough to implement long-term. The library its self has full unit-testing and is well written.
Also, FYI: extended-cpts' composer.json has a >= PHP7 requirement so I bumped it on models too. Giving that Sage and everything else is going >= PHP7, that shouldn't be too big of a deal. I also bumped dependency versions.
Here's a small example of adding column sorting, and post filtering provided by extended-cpts to a custom post type:
I know I hit you up on Roots Discourse before about extended-cpts support for models. I finally got around to changing it over and it works flawlessly with everything else still in tact.
Only difference is you can now add all the features that come with extended-cpts in
'config' => []
of your CPT or Taxonomy.An alternative if you don't want to add the extra dependency is to merely just add detection for the
register_extended_post_type
/register_extended_taxonomy
functions and otherwise use WordPress' defaults, but I do think extended-cpts is well maintained enough to implement long-term. The library its self has full unit-testing and is well written.Also, FYI: extended-cpts'
composer.json
has a>= PHP7
requirement so I bumped it on models too. Giving that Sage and everything else is going>= PHP7
, that shouldn't be too big of a deal. I also bumped dependency versions.Here's a small example of adding column sorting, and post filtering provided by extended-cpts to a custom post type:
Other features include:
Let me know your thoughts.