Skip to content

Data Core: Add Media selector documentation#70631

Closed
Infinite-Null wants to merge 1 commit intoWordPress:trunkfrom
Infinite-Null:docs/add-media-selector-documentation
Closed

Data Core: Add Media selector documentation#70631
Infinite-Null wants to merge 1 commit intoWordPress:trunkfrom
Infinite-Null:docs/add-media-selector-documentation

Conversation

@Infinite-Null
Copy link
Contributor

Part of #64215

What?
This PR manually adds documentation for the getMedia dynamically generated selector in the core/data store.

Why?
The getMedia selector is missed by the docgen tool and provides a much more user-friendly interface compared to the underlying getEntityRecord( 'root', 'media', id ) selector that powers it.

@Mamaduka
Copy link
Member

Mamaduka commented Jul 7, 2025

@Infinite-Null, it's probably best to avoid promoting more selector shortcuts for now. See: #64215 (comment).

P.S. I added the status blocked to the tracking issue.

@Mamaduka
Copy link
Member

Mamaduka commented Jul 7, 2025

@Infinite-Null, it might be better to close this PR for now. We can resolve the work once the problems with shortcut selectors are resolved.

@Infinite-Null
Copy link
Contributor Author

Sure @Mamaduka 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants