wordpress-develop/tests/phpunit/tests/term
K. Adam White a830dbcab3 REST API: Support meta registration for specific object subtypes.
Introduce an `object_subtype` argument to the args array for `register_meta()` which can be used to limit meta registration to a single subtype (e.g. a custom post type or taxonomy, vs all posts or taxonomies).

Introduce `register_post_meta()` and `register_term_meta()` wrapper methods for `register_meta` to provide a convenient interface for the common case of registering meta for a specific taxonomy or post type. These methods work the way plugin developers have often expected `register_meta` to function, and should be used in place of direct `register_meta` where possible.

Props flixos90, tharsheblows, spacedmonkey.
Fixes #38323.



git-svn-id: https://develop.svn.wordpress.org/trunk@43378 602fd350-edb4-49c9-b593-d223f7449a82
2018-06-21 21:06:50 +00:00
..
cache.php Code is Poetry. 2017-11-30 23:09:33 +00:00
categoryExists.php Code is Poetry. 2017-11-30 23:09:33 +00:00
getEditTermLink.php Code is Poetry. 2017-11-30 23:09:33 +00:00
getTagLink.php Fix regression in get_tag_link() since 4.9. 2017-12-04 20:51:27 +00:00
getTerm.php Code is Poetry. 2017-11-30 23:09:33 +00:00
getTermBy.php Code is Poetry. 2017-11-30 23:09:33 +00:00
getTermField.php Tests: Fix two typos introduced for a get_term_field() test in [35270]. 2018-02-03 17:10:51 +00:00
getTermLink.php Code is Poetry. 2017-11-30 23:09:33 +00:00
getTermParentsList.php Code is Poetry. 2017-11-30 23:09:33 +00:00
getTerms.php Code is Poetry. 2017-11-30 23:09:33 +00:00
getTheTerms.php Code is Poetry. 2017-11-30 23:09:33 +00:00
isObjectInTerm.php Code is Poetry. 2017-11-30 23:09:33 +00:00
meta.php REST API: Support meta registration for specific object subtypes. 2018-06-21 21:06:50 +00:00
query.php Taxonomy: Improve cache handling when querying for terms using all_with_object_id. 2018-05-25 01:22:44 +00:00
slashes.php Code is Poetry. 2017-11-30 23:09:33 +00:00
splitSharedTerm.php Code is Poetry. 2017-11-30 23:09:33 +00:00
taxQuery.php Code is Poetry. 2017-11-30 23:09:33 +00:00
termExists.php Code is Poetry. 2017-11-30 23:09:33 +00:00
wpDeleteObjectTermRelationships.php Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00
wpDeleteTerm.php Code is Poetry. 2017-11-30 23:09:33 +00:00
wpGenerateTagCloud.php Code is Poetry. 2017-11-30 23:09:33 +00:00
wpGetObjectTerms.php Code is Poetry. 2017-11-30 23:09:33 +00:00
wpInsertTerm.php Code is Poetry. 2017-11-30 23:09:33 +00:00
wpRemoveObjectTerms.php Bust object term cache in wp_remove_object_terms(). 2015-10-19 01:52:22 +00:00
wpSetObjectTerms.php Code is Poetry. 2017-11-30 23:09:33 +00:00
wpTaxonomy.php Code is Poetry. 2017-11-30 23:09:33 +00:00
wpTerm.php Code is Poetry. 2017-11-30 23:09:33 +00:00
wpUniqueTermSlug.php Code is Poetry. 2017-11-30 23:09:33 +00:00
wpUpdateTerm.php Code is Poetry. 2017-11-30 23:09:33 +00:00