get_translations_for_domain

Definition:
function &get_translations_for_domain( $domain ) {}

Returns the Translations instance for a domain. If there isn’t one, returns empty Translations instance.

Parameters

  • string $domain

Return values

returns:Translation instance

Source code

function &get_translations_for_domain( $domain ) {

	global $l10n;

	if ( !isset( $l10n[$domain] ) ) {

		$l10n[$domain] = new NOOP_Translations;

	}

	return $l10n[$domain];

}

1869

get_transient

Definition:
function get_transient( $transient ) {}

Get the value of a transient.
If the transient does not exist or does not have a value, then the return value will be false.

Parameters

  • string $transient: Transient name. Expected to not be SQL-escaped

Return values

returns:Value of transient

Defined filters

  • pre_transient_$transient
    apply_filters( 'pre_transient_' . $transient, false )
  • transient_$transient
    apply_filters( 'transient_' . $transient, $value )

Source code

function get_transient( $transient ) {

	global $_wp_using_ext_object_cache;



	$pre = apply_filters( 'pre_transient_' . $transient, false );

	if ( false !== $pre )

		return $pre;



	if ( $_wp_using_ext_object_cache ) {

		$value = wp_cache_get( $transient, 'transient' );

	} else {

		$transient_option = '_transient_' . $transient;

		if ( ! defined( 'WP_INSTALLING' ) ) {

			// If option is not in alloptions, it is not autoloaded and thus has a timeout

			$alloptions = wp_load_alloptions();

			if ( !isset( $alloptions[$transient_option] ) ) {

				$transient_timeout = '_transient_timeout_' . $transient;

				if ( get_option( $transient_timeout ) < time() ) {

					delete_option( $transient_option  );

					delete_option( $transient_timeout );

					return false;

				}

			}

		}



		$value = get_option( $transient_option );

	}



	return apply_filters( 'transient_' . $transient, $value );

}

1867

get_trackback_url

Definition:
function get_trackback_url() {}

Retrieve The current post’s trackback URL.
There is a check to see if permalink’s have been enabled and if so, will retrieve the pretty path. If permalinks weren’t enabled, the ID of the current post is used and appended to the correct page to go to.

Return values

returns:The trackback URL after being filtered

Defined filters

  • trackback_url
    apply_filters('trackback_url', $tb_url)

Source code

function get_trackback_url() {

	if ( '' != get_option('permalink_structure') ) {

		$tb_url = trailingslashit(get_permalink()) . user_trailingslashit('trackback', 'single_trackback');

	} else {

		$tb_url = get_option('siteurl') . '/wp-trackback.php?p=' . get_the_ID();

	}

	return apply_filters('trackback_url', $tb_url);

}

1865

get_to_ping

Definition:
function get_to_ping($post_id) {}

Retrieve URLs that need to be pinged.

Parameters

  • int $post_id: Post ID

Defined filters

  • get_to_ping
    apply_filters('get_to_ping', $to_ping)

Source code

function get_to_ping($post_id) {

	global $wpdb;

	$to_ping = $wpdb->get_var( $wpdb->prepare( "SELECT to_ping FROM $wpdb->posts WHERE ID = %d", $post_id ));

	$to_ping = trim($to_ping);

	$to_ping = preg_split('/\s/', $to_ping, -1, PREG_SPLIT_NO_EMPTY);

	$to_ping = apply_filters('get_to_ping',  $to_ping);

	return $to_ping;

}

1863

get_the_title_rss

Definition:
function get_the_title_rss() {}

Retrieve the current post title for the feed.

Return values

returns:Current post title.

Defined filters

  • the_title_rss
    apply_filters('the_title_rss', $title)

Source code

function get_the_title_rss() {

	$title = get_the_title();

	$title = apply_filters('the_title_rss', $title);

	return $title;

}

1861