Skip to content

Adding language metabox to the meeting post type#1139

Merged
adamwoodnz merged 5 commits intotrunkfrom
add-meeting-language-metabox
Dec 5, 2022
Merged

Adding language metabox to the meeting post type#1139
adamwoodnz merged 5 commits intotrunkfrom
add-meeting-language-metabox

Conversation

@hlashbrooke
Copy link
Collaborator

This PR adds the language metabox to the meeting post type - this completed the work done in #1009 and is necessary for the filtering in #1008 to be possible.

@hlashbrooke
Copy link
Collaborator Author

hlashbrooke commented Dec 1, 2022

I used the existing metabox files to add this new one - I hope that's the right place for it, but I'm happy to move things around if there's a better location.

@hlashbrooke
Copy link
Collaborator Author

New 'Meeting Language' metabox shows up in the sidebar:

Screenshot 2022-12-02 at 11 16 52 AM

The meta field registration and default value were already added in a previous PR, so this PR is simply rendering the metabox and saving the field when the post is updated.

@hlashbrooke hlashbrooke self-assigned this Dec 2, 2022
Co-authored-by: Adam Wood <adam.wood@automattic.com>
Co-authored-by: Adam Wood <adam.wood@automattic.com>
Co-authored-by: Adam Wood <adam.wood@automattic.com>
Copy link
Contributor

@adamwoodnz adamwoodnz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me, just one a11y fix needed

@hlashbrooke
Copy link
Collaborator Author

I have added all the changes you suggested, including the a11y fix - that was a good catch! This is ready to go now.

Copy link
Contributor

@adamwoodnz adamwoodnz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :shipit:

@adamwoodnz adamwoodnz merged commit a7cf3c8 into trunk Dec 5, 2022
@adamwoodnz adamwoodnz deleted the add-meeting-language-metabox branch December 5, 2022 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants