Skip to content

Releases: wp-papi/papi

v2.3.2

09 Sep 08:09
Compare
Choose a tag to compare
  • Fixed: Column issue with custom post types.

v2.3.1

08 Sep 09:22
Compare
Choose a tag to compare
  • Fixed: papi_html_tag issue when the text is a callable function.

v2.3.0

08 Sep 06:21
Compare
Choose a tag to compare

Added

  • Added: before_html and after_html options that you can use to output html before property html and after property html.
  • Added: child_types (old page_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 write pages.article.php or pages.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 in postmeta 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 to Add New Page (Page is the post type name).
  • Changed filter title from Show all page types to All types
  • Changed column title from Page Type to Type

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 are h1, see Headings in Admin screens change in WordPress 4.3 for more info.

v2.2.2

03 Sep 06:03
Compare
Choose a tag to compare
  • Fixed: papi-ajax returns 200 status code always. When using custom permalink structure it returned 404.

v2.2.1

12 Aug 10:55
Compare
Choose a tag to compare
  • Fixed: Allow html bug. See issue #79.

v2.2.0

03 Aug 06:53
Compare
Choose a tag to compare

Added

  • Added: Conditional logic for properties.
  • Added: Property file. See issue #71.
  • Added: Property user.
  • Added: Select2 setting to Dropdown, Post and User.

Fixed

Thanks

Thanks to @nlemoine for finding some bugs and feature request.

v2.1.1

25 Jun 10:02
Compare
Choose a tag to compare
  • Fixed: Image property will render SVG on page load correctly.

v2.1.0

24 Jun 17:09
Compare
Choose a tag to compare

Added

Changed

  • Changed: Tool page titles

Fixed

  • Fixed: SVG didn't work with image property. See issue #68.
  • Fixed: Option type will not be displayed under the tool page since they don't have post id

v2.0.0

22 Jun 14:36
Compare
Choose a tag to compare

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 like papi/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 use papi_delete_field or papi_delete_option, the post id will be zero when deleting a option value.

Filters

  • papi/settings/standard_page_type_{$post_type} is renamed to papi/settings/show_standard_page_type_{$post_type}

New functions

  • papi_get_slugs, replacing papi_get_fields

Field

  • papi_get_field, get the property database value. Replacing papi_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 replacing blank_text and include_blank
  • Upgraded Select2 to 4.0

Relationship

  • choose_max is renamed to limit.

Repeater

  • Added limit setting.
  • Added layout setting with table or row. The table value will render the repeater as a table and the row value will render the repeater as a row on the height.

Deprecated

  • current_page is deprecated since 2.0.0. Use papi_get_page instead.
  • papi_field is deprecated since 2.0.0 and replaced with papi_get_field
  • papi_fields is deprecated since 2.0.0 and replaced with papi_get_slugs
  • papi_get_page_type_meta_value is deprecated since 2.0.0 and replacede with papi_get_page_type_id

Thanks

Thanks to all contributors and all who have tested Papi during the development.

v1.2.9

07 Jun 17:45
Compare
Choose a tag to compare
  • Fixed relationship sorting on Select sort (no sort).