Draft
Conversation
…support # Conflicts: # assets/js/components/relationship-manager.tsx # assets/js/components/relationships-panel.tsx # package-lock.json
…support # Conflicts: # includes/UI/BlockEditor.php
…support # Conflicts: # dist/js/block-editor.asset.php # dist/js/block-editor.js # includes/UI/BlockEditor.php
…ship-component # Conflicts: # assets/js/components/RelationshipManager/index.tsx # assets/js/components/RelationshipsPanel/index.tsx # assets/js/index.ts # dist/js/wp-content-connect.asset.php # dist/js/wp-content-connect.js
# Conflicts: # dist/js/block-editor.asset.php # dist/js/block-editor.js # includes/UI/BlockEditor.php
# Conflicts: # assets/js/components/RelationshipManager/index.tsx # dist/css/admin-styles.css # dist/js/block-editor.asset.php # dist/js/block-editor.js # dist/js/classic-editor.asset.php # dist/js/classic-editor.js # includes/UI/BlockEditor.php
dkotter
reviewed
Jan 30, 2026
dkotter
reviewed
Jan 30, 2026
dkotter
reviewed
Jan 30, 2026
Member
Author
|
New tag: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
This PR combines the following feature branches:
Description of the Change
This PR introduces REST API endpoints, helper functions, and Block Editor integration for Content Connect, replacing the Vue-based classic editor UI with a React implementation.
New Features:
Helper Functions: Five new 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,get_post_to_user_relationships_data)REST API Endpoints:
POST /content-connect/v1/search- Search for posts and usersGET /content-connect/v2/relationships- List all relationshipsGET /content-connect/v2/post/{id}/relationships- Get post relationshipsGET /content-connect/v2/post/{id}/related- Get related entitiesPOST /content-connect/v2/post/{id}/related- Update related entitiesPUT /content-connect/v2/post/{id}/related- Add related entityDELETE /content-connect/v2/post/{id}/related- Remove related entityBlock Editor Integration:
wp-content-connect)useRelationships,useRelatedEntities)@10up/block-componentsContentPickercontentConnect.searchResultFilter,contentConnect.pickedItemFilter,contentConnect.pickedItemPreviewComponent) for customizing UI with context-aware relationship informationClassic Editor:
Changelog Entry
Credits
Props @s3rgiosan @fabiankaegy
Checklist