get_tags

Definition:
function &get_tags( $args = '' ) {}

Retrieves all post tags.

Parameters

  • string|array $args: Tag arguments to use when retrieving tags.

Return values

returns:List of tags.

Defined filters

  • get_tags
    apply_filters( 'get_tags', $tags, $args )

Source code

function &get_tags( $args = '' ) {

	$tags = get_terms( 'post_tag', $args );



	if ( empty( $tags ) ) {

		$return = array();

		return $return;

	}



	$tags = apply_filters( 'get_tags', $tags, $args );

	return $tags;

}

1719

get_tag

Definition:
function &get_tag( $tag, $output = OBJECT, $filter = 'raw' ) {}

Retrieve post tag by tag ID or tag object.
If you pass the $tag parameter an object, which is assumed to be the tag row object retrieved the database. It will cache the tag data.

Parameters

  • int|object $tag
  • string $output: Optional. Constant OBJECT, ARRAY_A, or ARRAY_N
  • string $filter: Optional. Default is raw or no WordPress defined filter will applied.

Return values

returns:Return type based on $output value.

Source code

function &get_tag( $tag, $output = OBJECT, $filter = 'raw' ) {

	return get_term( $tag, 'post_tag', $output, $filter );

}

1717

get_super_admins

Definition:
function get_super_admins() {}

Retrieve a list of super admins.

Return values

returns:List of super admin logins

Source code

function get_super_admins() {

	global $super_admins;



	if ( isset($super_admins) )

		return $super_admins;

	else

		return get_site_option( 'site_admins', array('admin') );

}

1715

get_stylesheet_uri

Definition:
function get_stylesheet_uri() {}

Retrieve URI of current theme stylesheet.
The stylesheet file name is ‘style.css’ which is appended to stylesheet directory URI path.

Defined filters

  • stylesheet_uri
    apply_filters('stylesheet_uri', $stylesheet_uri, $stylesheet_dir_uri)

Source code

function get_stylesheet_uri() {

	$stylesheet_dir_uri = get_stylesheet_directory_uri();

	$stylesheet_uri = $stylesheet_dir_uri . '/style.css';

	return apply_filters('stylesheet_uri', $stylesheet_uri, $stylesheet_dir_uri);

}

1713

get_stylesheet_directory_uri

Definition:
function get_stylesheet_directory_uri() {}

Retrieve stylesheet directory URI.

Defined filters

  • stylesheet_directory_uri
    apply_filters( 'stylesheet_directory_uri', $stylesheet_dir_uri, $stylesheet, $theme_root_uri )

Source code

function get_stylesheet_directory_uri() {

	$stylesheet = get_stylesheet();

	$theme_root_uri = get_theme_root_uri( $stylesheet );

	$stylesheet_dir_uri = "$theme_root_uri/$stylesheet";



	return apply_filters( 'stylesheet_directory_uri', $stylesheet_dir_uri, $stylesheet, $theme_root_uri );

}

1711