get_taxonomies

Definition:
function get_taxonomies( $args = array() {}

Get a list of registered taxonomy objects.

Parameters

  • array $args: An array of key => value arguments to match against the taxonomy objects.
  • string $output: The type of output to return, either taxonomy ‘names’ or ‘objects’. ‘names’ is the default.
  • string $operator: The logical operation to perform. ‘or’ means only one element from the array needs to match; ‘and’ means all elements must match. The default is ‘and’.

Return values

returns:A list of taxonomy names or objects

Source code

function get_taxonomies( $args = array(), $output = 'names', $operator = 'and' ) {

	global $wp_taxonomies;



	$field = ('names' == $output) ? 'name' : false;



	return wp_filter_object_list($wp_taxonomies, $args, $operator, $field);

}

1729

get_tag_template

Definition:
function get_tag_template() {}

Retrieve path of tag template in current or parent template.
Works by first retrieving the current tag name, for example ‘tag-wordpress.php’ and then trying tag ID, for example ‘tag-1.php’ and will finally fallback to tag.php template, if those files don’t exist.

Source code

function get_tag_template() {

	$tag = get_queried_object();



	$templates = array();



	$templates[] = "tag-{$tag->slug}.php";

1727

get_tag_link

Definition:
function get_tag_link( $tag ) {}

Retrieve the link to the tag.

Parameters

  • int|object $tag: Tag ID or object.

Return values

returns:Link on success, empty string if tag does not exist.

Source code

function get_tag_link( $tag ) {

	if ( ! is_object( $tag ) )

		$tag = (int) $tag;



	$tag = get_term_link( $tag, 'post_tag' );



	if ( is_wp_error( $tag ) )

		return '';



	return $tag;

}

1725

get_tag_feed_link

Definition:
function get_tag_feed_link($tag_id, $feed = '') {}

Retrieve permalink for feed of tag.

Parameters

  • int $tag_id: Tag ID.
  • string $feed: Optional. Feed type.

Source code

function get_tag_feed_link($tag_id, $feed = '') {

	return get_term_feed_link($tag_id, 'post_tag', $feed);

}

1723

get_tags_to_edit

Definition:
function get_tags_to_edit( $post_id, $taxonomy = 'post_tag' ) {}

Parameters

  • unknown_type $post_id
  • $taxonomy

Source code

function get_tags_to_edit( $post_id, $taxonomy = 'post_tag' ) {

	return get_terms_to_edit( $post_id, $taxonomy);

}

1721