WordPress.org

Make WordPress Core

Opened 4 months ago

Last modified 4 days ago

#49948 new enhancement

Site Meta: Adding additional useful functions

Reported by: mikeyhoward1977 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: minor Version: trunk
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.


4 months ago

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() 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.

<!--
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:

This ticket was mentioned in Slack in #core by mikehoward. View the logs.


4 days ago

Note: See TracTickets for help on using tickets.