register_term_meta

SummerySummery

Registers a meta key for terms.

Syntax

register_term_meta( string $taxonomy, string $meta_key, array $args )

ParametersParameters

$taxonomy

(string) (Required) Taxonomy to register a meta key for. Pass an empty string to register the meta key across all existing taxonomies.

$meta_key

(string) (Required) The meta key to register.

$args

(array) (Required) Data used to describe the meta key when registered. See register_meta() for a list of supported arguments.

ReturnReturn

(bool) True if the meta key was successfully registered, false if not.

SourceSource

File: wp-includes/taxonomy.php


			

ChangelogChangelog

Changelog
Version Description
4.9.8 Introduced.
Scroll to Top