:rocket: WordPress Page Type API with custom fields
The stable release of Papi 3.2.0, a lot has been added, changed, fixed and some functions has been removed (mostly core stuff). Papi 3.2.0 introduce a new core data api that is used everywhere in the plugin and by advanced properties. Upgrading from Papi 3.1.x will work and the new core data api will not create any problems.
Unfortunately this will likely be the last release I plan to work on as the core maintainer of Papi since my focus has shifted from WordPress to doing more JavaScript and Go projects. I hope you understand my decision to step back from the project, if you have any questions or would be interested in take over some of the maintenance of the project please let me know. I will still be around answering questions and helping any new maintainers. Some bug fixes and/or pull request may be added (but now new versions) since me and my colleagues use Papi internally and will be continuing doing it.
body_classes
will be added to the frontend aswell and not just the admin.register_meta
support for REST API.edit_url
setting to post property to display iframe mode.papi/get_boxes
filter so you can add boxes to a entry type that don't exists in the class./papi-ajax/?action=get_shortcode&shortcode=[test]
Papi_Entry_Type
to fetch all properties get_properties
, it's useful if you would like to build something custom.Papi_Query
site_id
option added to both box and property.papi/get_property
filter added so you can modify properties when they are fetched inside Papi.fields => ids
setting on file, image, gallery, post, term and relationship property.meta_key => custom_meta_key
setting on file, image, gallery, post, term and relationship property, so you can match meta value instead of post id.any
post type value for a page type.lang
option now supports arrays and not just strings.papi/conditional/rule_allowed
papi/lang
papi/template_extension
papi_is_page_type
to check if current post is a page type with (was only used internal before).papi()->make( 'Sample_Page_Type' )
is replaced by id papi()->make( 'simple-page-type' )
to make it more consistent.papi_get_page
, is deprecated and you should use papi_get_meta_store( $id )
instead since it support both post, term and option stores and papi_get_page
returns the value of papi_get_meta_store
so no need for two functions that does the same thing.papi_get_entry_type_css_class
will work with taxonomies.papi_delete_property_meta_value
is replaced with papi_data_delete
, mostly use by core and advanced properties.papi_get_property_meta_value
is replaced with papi_data_get
, mostly use by core and advanced properties.papi_update_property_meta_value
is replaced with papi_data_update
, mostly use by core and advanced properties.Beta 2 of Papi 3.2.0, things may change and be fixed when Papi 3.2.0 is out. Use the beta release to test your sites, give feedback and contribute fixes.
Changelog for beta 2 (read changelog for beta 1 here).
lang
option now supports arrays and not just strings.papi/conditional/rule_allowed
papi/lang
papi/template_extension
This release contains the first beta version of Papi 3.2.0, a lot has been added, changed, fixed and some functions has been removed (mostly core stuff). Papi 3.2.0 introduce a new core data api that is used everywhere in the plugin and by advanced properties. Upgrading from Papi 3.1.x will work and the new core data api will not create any problems.
This is just a beta release and stuff will be fixed and changed when Papi 3.2.0 is out. Use the beta release to test your sites, give feedback and contribute fixes.
body_classes
will be added to the frontend aswell and not just the admin.register_meta
support for REST API.papi/get_boxes
filter so you can add boxes to a entry type that don't exists in the class./papi-ajax/?action=get_shortcode&shortcode=[test]
Papi_Entry_Type
to fetch all properties get_properties
, it's useful if you would like to build something custom.Papi_Query
site_id
option added to both box and property.papi/get_property
filter added so you can modify properties when they are fetched inside Papi.fields => ids
setting on file, image, gallery, post, term and relationship property.meta_key => custom_meta_key
setting on file, image, gallery, post, term and relationship property, so you can match meta value instead of post id.any
post type value for a page type.papi_is_page_type
to check if current post is a page type with (was only used internal before).papi()->make( 'Sample_Page_Type' )
is replaced by id papi()->make( 'simple-page-type' )
to make it more consistent.papi_get_page
, is deprecated and you should use papi_get_meta_store( $id )
instead since it support both post, term and option stores and papi_get_page
returns the value of papi_get_meta_store
so no need for two functions that does the same thing.papi_get_entry_type_css_class
will work with taxonomies.papi_delete_property_meta_value
is replaced with papi_data_delete
, mostly use by core and advanced properties.papi_get_property_meta_value
is replaced with papi_data_get
, mostly use by core and advanced properties.papi_update_property_meta_value
is replaced with papi_data_update
, mostly use by core and advanced properties.FORCE_SSL_ADMIN
and AJAX endpoint #213.vertical
layout #201.z-index
issue with flexible add
button when placed under a editor #198. Props nlemoine.nl2br
issue with text property #199.selected
attribute.