Skip to content

Adds support for reading config/term-meta.json #450

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Apr 18, 2025

Conversation

goodguyry
Copy link
Member

This change makes the meta registration system more flexible by supporting both post and term meta configurations through a similar interface and shared code.

  • Refactors the existing register_post_meta_from_defs() function into a more generic register_meta_from_defs() function that can handle both post and term meta
    • Adds a new register_term_meta_from_defs() function that uses the generic function with 'term' context
    • Updates the original register_post_meta_from_defs() to use the new generic function with 'post' context
  • Updates plugin.php to call both registration functions

Copy link

@kingkool68 kingkool68 left a comment

Choose a reason for hiding this comment

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

👍

@goodguyry goodguyry merged commit a034474 into develop Apr 18, 2025
6 checks passed
@goodguyry goodguyry deleted the feature/term-meta-support branch April 18, 2025 16:31
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants