Opened 5 years ago
Last modified 4 years ago
#49948 new enhancement
Site Meta: Adding additional useful functions
Reported by: | mikeyhoward1977 | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | minor | Version: | 5.5 |
Component: | Options, Meta APIs | Keywords: | needs-testing |
Focuses: | multisite | Cc: |
Description
There are useful functions for post meta such as get_post_custom()
, get_post_custom_keys()
and get_post_custom_values()
.
These functions do not exist for site meta but they would be useful. I've added get_site_custom()
, get_site_custom_keys()
and get_site_custom_values()
to ms-site.php and created a PR to the GitHub repo.
Change History (3)
This ticket was mentioned in PR #227 on WordPress/wordpress-develop by mikeyhoward1977.
5 years ago
#1
This ticket was mentioned in Slack in #core by mikehoward. View the logs.
4 years ago
Note: See
TracTickets for help on using
tickets.
https://core.trac.wordpress.org/ticket/49948#ticket(https://core.trac.wordpress.org/ticket/49948#ticket)
There are useful functions for post meta such as
get_post_custom()
,get_post_custom_keys()
andget_post_custom_values()
.These functions do not exist for site meta but they would be useful. I've added
get_site_custom()
,get_site_custom_keys()
andget_site_custom_values()
to ms-site.php and created a PR to the GitHub repo.<!--
Hi there! Thanks for contributing to WordPress!
Pull Requests in this GitHub repository must be linked to a ticket in the WordPress Core Trac instance (https://core.trac.wordpress.org), and are only used for code review. No pull requests will be merged on GitHub.
See the WordPress Handbook page on using PRs for Code Review more information: https://make.wordpress.org/core/handbook/contribute/git/github-pull-requests-for-code-review/
If this is your first time contributing, you may also find reviewing these guides first to be helpful:
-->
Trac ticket: