All notable changes to this project will be documented in this file, per the Keep a Changelog standard.
Unreleased - TBD
2.0.0 - TBD
2.0.0 is a major rewrite of the editor UI and REST surface. Stored relationship data and the database schema are unchanged, and the documented public API is preserved: the relationship objects and their data methods (add_relationship(), delete_relationship(), replace_relationships(), the save_*_sort_data() family, etc.), WP_Query relationship queries, the helper functions, and the content-connect/v1/search endpoint URL all continue to work. No action is required if you use these documented interfaces.
The changes below affect only code that referenced plugin internals that were never part of the documented API:
- Moved class:
TenUp\ContentConnect\API\Searchis nowTenUp\ContentConnect\API\V1\Search. Thecontent-connect/v1/searchREST endpoint URL is unchanged. - Removed UI classes:
UI\MetaBox,UI\PostToPost,UI\PostToUser, andUI\PostUIwere replaced by the React-basedUI\BlockEditorandUI\ClassicEditor. Pluginmembers: the$url,$version,$meta_box,$search,$deleted_items,$wp_query_integration, and$user_query_integrationpublic properties were removed — use theCONTENT_CONNECT_URL,CONTENT_CONNECT_VERSION, andCONTENT_CONNECT_PATHconstants instead.Plugin::wp_init()was renamed toPlugin::init().- Relationship internals:
Relationship::setup(),PostToPost::setup(),PostToUser::setup(), and the$from_ui/$to_uiproperties were removed.Registry::define_post_to_post()anddefine_post_to_user()no longer instantiate UI objects. - Editor assets: the
tenup-content-connectscript handle and thewindow.ContentConnectDataglobal were removed. The Classic Editor metabox markup and save flow changed — relationships now persist through the REST v2 API instead of asave_postform submission. - Removed filter:
tenup_content_connect_localize_data, which only filtered the removed Vue interface's localized payload, no longer fires. Thetenup_content_connect_post_relationship_datafilter is retained (now applied in the data layer, with added$rel_type,$other_post_type, and$contextarguments).
- Helper functions for retrieving relationship data:
get_post_to_post_relationships_by(),get_post_to_user_relationships_by(),get_post_relationships_data(),get_post_to_post_relationships_data(), andget_post_to_user_relationships_data()(props @s3rgiosan via #96). - REST API v2 endpoint
GET /content-connect/v2/relationshipsto retrieve all relationships by type, with optional filtering by key, post type, or from/to post types (props @s3rgiosan via #95). - REST API v2 endpoint
GET /content-connect/v2/post/{post_id}/relationshipsto retrieve all relationships for a post, with filtering by relationship type, post type, and context (view/embed) (props @s3rgiosan via #95). - REST API v2 endpoints
GET|POST|PUT|DELETE /content-connect/v2/post/{post_id}/relatedto retrieve (with pagination and ordering), replace, add, and remove related entities for a post, preserving sort order for sortable relationships (props @s3rgiosan via #95). - Automatic
content-connect:relationshipsandcontent-connect:relatedREST API links on post responses for post types that support REST (props @s3rgiosan via #95). - WordPress Data API store (
wp-content-connect) for managing Content Connect relationships within the Block Editor (props @fabiankaegy, @barryceelen, @s3rgiosan via #94). - React hooks
useRelationships()anduseRelatedEntities()for accessing and managing relationships in custom blocks (props @fabiankaegy, @barryceelen, @s3rgiosan via #94). - Block Editor UI integration with automatic relationship panels in the Document Settings sidebar (props @fabiankaegy, @barryceelen, @s3rgiosan via #94).
- WordPress JavaScript filter hooks
contentConnect.searchResultFilter,contentConnect.pickedItemFilter, andcontentConnect.pickedItemPreviewComponentfor customizing the Block Editor UI, with relationship context awareness (props @s3rgiosan via #104). - WordPress 7.0 compatibility; set WordPress minimum supported version to 6.8 (props @mphillips via #120).
- WordPress Playground blueprint (
.github/blueprints/blueprint.json) for a one-click, zero-install plugin demo (props @s3rgiosan via #122). tenup-content-connect-update-relationships-orderaction for developers to run logic after relationship order is saved, firing for post-to-post, post-to-user, and user-to-post relationships (props @ocean90 via #123).
- Replaced the Vue-based Classic Editor UI with a React-based implementation that shares the Block Editor's components and
@wordpress/datastore, for a consistent experience across both editors (props @s3rgiosan via #97).
- The REST API v1 search endpoint (
POST /content-connect/v1/search). Use thecontent-connect/v2endpoints instead (props @s3rgiosan via #95).
- Vue.js dependency and the
vue-resourcepackage (props @s3rgiosan via #97).
1.6.0 - 2025-02-14
- Filters for the Post UI
WP_QueryandWP_User_Queryargs (props @s3rgiosan, @rickalee via #67). - Apply
tenup_content_connect_final_postandtenup_content_connect_final_userfilters to search results (props @s3rgiosan, @webdados via #86).
- Bump WordPress "tested up to" version to 6.7 (props @s3rgiosan, @jeffpaul, @benlk, @webdados via #80).
- Set WordPress minimum supported version to 6.5 (props @s3rgiosan, @jeffpaul, @benlk, @webdados via #80).
- Set PHP minimum supported version to 7.4 (props @s3rgiosan, @jeffpaul, @benlk, @webdados via #80).
- Documentation updates (props @jeffpaul, @moraleida, @dinhtungdu via #38, #39, #47, #60).
- Remove
ippackage dependency (props @dependabot via #90).
- Item deletion in search (props @kirtangajjar, @s3rgiosan via #70).
- Check if
$postis instance of\WP_Postbefore adding meta boxes (props @s3rgiosan, @webdados, (@rickalee) via #77).
- Bump
lodash.mergewithfrom 4.6.1 to 4.6.2 (props @dependabot via #40). - Bump
lodashfrom 4.17.11 to 4.17.21 (props @dependabot via #41, #52, #56). - Bump
tarfrom 2.2.1 to 4.4.19 (props @dependabot via #42, #64). - Bump
fstreamfrom 1.0.11 to 1.0.12 (props @dependabot via #43). - Bump
mixin-deepfrom 1.3.1 to 1.3.2 (props @dependabot via #44). - Bump
acornfrom 6.1.1 to 6.4.1 (props @dependabot via #48). - Bump
ellipticfrom 6.4.1 to 6.6.1 (props @dependabot via #51, #54, #89). - Bump
node-sassfrom 4.11.0 to 9.0.0 (props @dependabot via #53, #63, #73, #89). - Bump
y18nfrom 3.2.1 to 3.2.2 (props @dependabot via #55). - Bump
hosted-git-infofrom 2.8.8 to 2.8.9 (props @dependabot via #57). - Bump
path-parsefrom 1.0.6 to 1.0.7 (props @dependabot via #58). - Bump
cached-path-relativefrom 1.0.2 to 1.1.0 (props @dependabot via #61). - Bump
inifrom 1.3.5 to 1.3.8 (props @dependabot via #62). - Bump
decode-uri-componentfrom 0.2.0 to 0.2.2 (props @dependabot via #68). - Bump
minimatchfrom 3.0.4 to 3.0.8 (props @dependabot via #72). - Bump
scss-tokenizerfrom 0.2.3 to 0.4.3 (props @dependabot via #73). - Bump
minimistfrom 1.2.0 to 1.2.8 (props @dependabot via #88). - Bump
mkdirpfrom 0.5.1 to 0.5.6 (props @dependabot via #88). - Bump
vue-resourcefrom 1.3.4 to 1.5.3 (props @dependabot via #89). - Bump
watchifyfrom 3.11.1 to 4.0.0 (props @dependabot via #89). - Bump
bracesfrom 2.3.2 to 3.0.3 (props @dependabot via #89). - Bump
browserify-signfrom 4.0.4 to 4.2.3 (props @dependabot via #89). - Bump
fseventsfrom 1.2.7 to 2.3.3 (props @dependabot via #89). - Bump
gotfrom 7.1.0 to 11.8.6 (props @dependabot via #89). - Bump
shell-quotefrom 1.6.1 to 1.8.2 (props @dependabot via #89). - Bump
socksfrom 2.7.1 to 2.8.4 (props @dependabot via #90).
1.5.0 - 2019-03-29
- Additional filters on search REST endpoint
1.4.0 - 2019-03-25
- Update versions to 1.4.0.
1.3.0 - 2019-03-01
- Update npm modules + Update version to 1.3.0 for release.
1.2.0 - 2018-06-12
- Changes the WP Query integration to reference
query_varsinstead ofqueryonWP_Queryobjects to support alterations to the query via thepre_get_postshook.
1.1.0 - 2018-06-12
- Allows the
$toparameter to accept an array of multiple post types in post to post relationships, so that you can relate a single post type to many post types in the same relationship.
1.0.0 - 2018-06-12
- Initial plugin release.