feat: enhance functionality with extended metadata and computed fields#15
feat: enhance functionality with extended metadata and computed fields#15xavierandueza wants to merge 1 commit into
Conversation
…fields Add new input parameters, computed output fields, and internal logic enhancements across 10 REST API endpoint controllers for posts, media, comments, themes, users, post types, post statuses, block types, navigation menus, and site health.
|
📚 Documentation update workflow has been queued for reopened PR (Job ID: |
📚 Documentation Changes Applied
|
|
📚 Analyzing PR for documentation updates... |
📚 Documentation Changes Applied
|
📚 Documentation Changes Applied
|
📚 Documentation Changes Applied
|
|
📚 Analyzing PR for documentation updates... |
|
📚 No documentation changes were needed for this PR (Job ID: |
|
Documentation Changes Added
Actions
|
|
📚 No documentation updates were needed for this PR. |
|
You can re-trigger by reopening this PR. |
|
📚 No documentation updates were needed for this PR. |
|
Documentation Changes Added
Actions
|
|
📚 No documentation updates were needed for this PR. |
|
Documentation Changes Added
Actions
|
|
📚 No documentation updates were needed for this PR. |
1 similar comment
|
📚 No documentation updates were needed for this PR. |
|
Documentation Changes Added
Actions
|
|
Documentation Changes Added
Actions
|
|
Documentation Changes Added
Actions
|
|
Documentation Changes Added
Actions
If neither actions are selected, on PR close/merge the docs branch in ReadMe will remain open. |
Summary
Enhances controllers:
update_item): Addededitorial_noteinput field for tracking change reasons, plus computedword_countandestimated_reading_timeoutput fieldscreate_item): Addedoptimize_imageflag with dimension constraint logic, plusblurhashplaceholder andfile_sizeoutput fieldsupdate_item): Addedsentimenttagging (positive/neutral/negative), plus computedcontent_lengthandcontains_linksoutput fieldsget_item): Addedinclude_color_palettequery param to extractcolor_paletteandfont_familiesfrom theme.jsonupdate_item): Addedtimezonepreference field, plus computedaccount_age_daysandlast_activeoutput fieldsget_item): Addedinclude_countsquery param forpost_countandrecent_activityoutput fieldsget_item): Addedinclude_usagequery param forusage_countandpercentage_of_totaldistribution statsget_item): Addedinclude_usage_statsquery param forusage_countandmost_used_in_post_typeoutput fieldscreate_item): Addedauto_assign_primaryflag for automatic primary location assignment, plusitem_countandassigned_locationsoutput fieldsget_directory_sizes): Added transient-based caching,cache_statusfield, per-directorypercentage_of_total, and optional uploads sub-directory breakdown viainclude_breakdownparamAll changes follow established WordPress REST API patterns with proper schema definitions, input sanitization, and conditional field inclusion.
Test Plan