Releases: wp-papi/papi
Releases · wp-papi/papi
v2.3.2
v2.3.1
v2.3.0
Added
- Added:
before_html
andafter_html
options that you can use to output html before property html and after property html. - Added:
child_types
(oldpage_types
). - Added:
standard_type
for show/hide standard page type when having a page type in a parent post. - Added: New filter for show/hide standard page type from filter dropdown.
papi/settings/show_standard_page_type_in_filter_{$post_type}
- Added: New property for adding links with the link popup that exists in the editor.
- Added: Support for dot templates in page type, so instead of
pages/article.php
can you writepages.article.php
orpages.article
without.php
extension. The old way will continue to work. - Added: Import and export layer that can be used when importing data to Papi or exporting.
- Added:
papi_get_page_type_key
function that will return the meta key that Papi use to save page type id inpostmeta
table. - Added:
papi_set_page_type_id
function so you can set page type id to a post. - Added:
papi_page_type_exists
function so you can check if a page type file exists. - Added:
papi_option_type_exists
function so you can check if a option type file exists.
Changed
- Changed
Add new page type
toAdd New Page
(Page
is the post type name). - Changed filter title from
Show all page types
toAll types
- Changed column title from
Page Type
toType
Fixed
- Fixed:
wp-admin
is not hardcoded on the management page. - Fixed:
2%F
is replaced with/
when setting the current menu item. - Fixed:
post_type
query for post post type works as it should. - Fixed: All
h2
tags areh1
, see Headings in Admin screens change in WordPress 4.3 for more info.
v2.2.2
v2.2.1
v2.2.0
Added
- Added: Conditional logic for properties.
- Added: Property file. See issue #71.
- Added: Property user.
- Added: Select2 setting to Dropdown, Post and User.
Fixed
- Fixed: Labels for attribute.
- Fixed: Format_value and update_value for flexible and repeater
- Fixed: Array to string issue #75.
- Fixed: Translation issue #73.
- Fixed: Admin column issue #72.
- Fixed:
h2
ish1
. See Headings in Admin screens change in WordPress 4.3
Thanks
Thanks to @nlemoine for finding some bugs and feature request.
v2.1.1
v2.1.0
v2.0.0
Papi 2.0.0 is a big release with a flexible repeater, updated properties, option type (page type for options page), new API functions and bug fixes. Some internal functions has been removed or renamed.
Upgrading from Papi 1.x to 2.x will not be a big step and there is a upgrade guide describing what is changed since 2.x.
Requirements
- WordPress >= 4.0
- PHP >= 5.4.7
Enhancements
- Added
display( $post_type )
method to page type class, works likepapi/settings/show_page_type_{$post_type}
. - New property: Flexible repeater, a repeater where you can have different layouts on each row.
- Option type, just like page type but for option pages.
Actions
papi/delete_value/{$property_type}
is called when you usepapi_delete_field
orpapi_delete_option
, the post id will be zero when deleting a option value.
Filters
papi/settings/standard_page_type_{$post_type}
is renamed topapi/settings/show_standard_page_type_{$post_type}
New functions
papi_get_slugs
, replacingpapi_get_fields
Field
papi_get_field
, get the property database value. Replacingpapi_field
papi_update_field
, update a property database value.papi_delete_field
, delete the property database value.
Option
papi_delete_option
, delete property database value.papi_get_option
, get property value from Papi option type.papi_update_option
, update property database value.
Page type
papi_get_page_type_id
, get the page type id.papi_get_page_type_name
, get the page type name.the_papi_page_type_name
, echo the page type name.
Properties
Datetime
- Upgrade moment.js to 2.10.3
- Upgrade Pikaday
Dropdown and Post
placeholder
setting is replacingblank_text
andinclude_blank
- Upgraded Select2 to 4.0
Relationship
choose_max
is renamed tolimit
.
Repeater
- Added
limit
setting. - Added
layout
setting withtable
orrow
. Thetable
value will render the repeater as a table and therow
value will render the repeater as a row on the height.
Deprecated
current_page
is deprecated since 2.0.0. Usepapi_get_page
instead.papi_field
is deprecated since 2.0.0 and replaced withpapi_get_field
papi_fields
is deprecated since 2.0.0 and replaced withpapi_get_slugs
papi_get_page_type_meta_value
is deprecated since 2.0.0 and replacede withpapi_get_page_type_id
Thanks
Thanks to all contributors and all who have tested Papi during the development.