Skip to content

Releases: sixach/wp-react-hooks

v1.14.0

12 Apr 15:23
d3a0229

Choose a tag to compare

Changed

  • Enhanced useGetNodeList to accept a predicate function to filter objects contained in the result set

v1.13.0

09 Mar 18:45
351db2a

Choose a tag to compare

Added

  • useIsDraggingWithin: Determine whether an element is being dragged within another (ref) target element #87

v1.12.0

01 Mar 22:40
24d3215

Choose a tag to compare

Added

  • useGetSiteData: Retrieve the current site data or object #84
  • useGetCurrentPost: Retrieve the current post object given a post ID and post-type name (key) #85

v1.11.0

17 Feb 17:59
d1b795e

Choose a tag to compare

Added

useGetBlockLayout: Retrieve the block support value for the "Layout" settings to be used in the preview #78

v1.10.0

27 Jan 17:44
6ce7147

Choose a tag to compare

Added

useGetMediaType: Retrieve media MIME type based on given attachment id #68

v1.9.2

26 Jan 15:57
beb5fe9

Choose a tag to compare

Added

  • Introduced a wrapper for useInnerBlocksProps. This ensures compatibility with WordPress 5.9 as well as previous versions that only have the experimental feature.

v1.9.1

22 Jan 23:54
4026e62

Choose a tag to compare

Changed

  • Fixed a bug in usePreparePosts where the query contained entries of undefined
  • Minor restructuring in useGetPosts to prevent re-render on mount

v1.9.0

09 Dec 11:36
35f8f56

Choose a tag to compare

usePostTypeNameRestBase: Post-type name and REST-API base key extraction #45

v1.8.0

08 Dec 20:07
ec6ada0

Choose a tag to compare

useColumnsProps: CSS class names and viewport-wide columns gap inline CSS style generator #40

v1.7.0

25 Nov 17:15
f5330cc

Choose a tag to compare

useGetPostMeta: Retrieves a post meta field of the current post. #40
useUpdatePostMeta: Updates a post meta field based on the given post ID. #40