Un motore di ricerca WordPress per sviluppatori e autori di temi



register_term_meta ›

Da4.9.8
Deprecaton/a
register_term_meta ( $taxonomy, $meta_key, $args )
Parametri: (3)
  • (string) $taxonomy Taxonomy to register a meta key for. Pass an empty string to register the meta key across all existing taxonomies.
    Richiesto:
  • (string) $meta_key The meta key to register.
    Richiesto:
  • (array) $args Data used to describe the meta key when registered. See register_meta for a list of supported arguments.
    Richiesto:
Ritorna:
  • (bool) True if the meta key was successfully registered, false if not.
Definito a:
Codex:

Registers a meta key for terms.



Sorgenti

function register_term_meta( $taxonomy, $meta_key, array $args ) {
	$args['object_subtype'] = $taxonomy;

	return register_meta( 'term', $meta_key, $args );
}