bloginfo

Definition:
function bloginfo( $show='' ) {}

Display information about the blog.

Parameters

  • string $show: What to display.

Source code

function bloginfo( $show='' ) {

	echo get_bloginfo( $show, 'display' );

}

563

before_last_bar

Definition:
function before_last_bar( $string ) {}

Parameters

  • $string

Source code

function before_last_bar( $string ) {

	$last_bar = strrpos( $string, '|' );

	if ( false == $last_bar )

		return $string;

	else

		return substr( $string, 0, $last_bar );

}

561

balanceTags

Definition:
function balanceTags( $text, $force = false ) {}

Will only balance the tags if forced to and the option is set to balance tags.
The option ‘use_balanceTags’ is used for whether the tags will be balanced. Both the $force parameter and ‘use_balanceTags’ option will have to be true before the tags will be balanced.

Parameters

  • string $text: Text to be balanced
  • bool $force: Forces balancing, ignoring the value of the option. Default false.

Return values

returns:Balanced text

Source code

function balanceTags( $text, $force = false ) {

	if ( !$force && get_option('use_balanceTags') == 0 )

		return $text;

	return force_balance_tags( $text );

}

559

backslashit

Definition:
function backslashit($string) {}

Adds backslashes before letters and before a number at the start of a string.

Parameters

  • string $string: Value to which backslashes will be added.

Return values

returns:String with backslashes inserted.

Source code

function backslashit($string) {

	$string = preg_replace('/^([0-9])/', '\\\\\\\\\1', $string);

	$string = preg_replace('/([a-z])/i', '\\\\\1', $string);

	return $string;

}

557

background_image

Definition:
function background_image() {}

Display background image path.

Source code

function background_image() {

	echo get_background_image();

}

555