_c

Definition:
function _c( $text, $domain = 'default' ) {}

Retrieve translated string with vertical bar context
Quite a few times, there will be collisions with similar translatable text found in more than two places but with different translated context.

Parameters

  • string $text: Text to translate
  • string $domain: Optional. Domain to retrieve the translated text

Return values

returns:Translated context string without pipe

Source code

function _c( $text, $domain = 'default' ) {

	_deprecated_function( __FUNCTION__, '2.9', '_x()' );

	return before_last_bar( translate( $text, $domain ) );

}

4299

_admin_search_query

Definition:
function _admin_search_query() {}

Display the search query.
A simple wrapper to display the "s" parameter in a GET URI. This function should only be used when the_search_query() cannot.

Source code

function _admin_search_query() {

	echo isset($_REQUEST['s']) ? esc_attr( stripslashes( $_REQUEST['s'] ) ) : '';

}

4297

_admin_notice_post_locked

Definition:
function _admin_notice_post_locked() {}

Outputs the notice message to say that someone else is editing this post at the moment.

Source code

function _admin_notice_post_locked() {

	global $post;



	$lock = explode( ':', get_post_meta( $post->ID, '_edit_lock', true ) );

	$user = isset( $lock[1] ) ? $lock[1] : get_post_meta( $post->ID, '_edit_last', true );

	$last_user = get_userdata( $user );

	$last_user_name = $last_user ? $last_user->display_name : __('Somebody');



	switch ($post->post_type) {

		case 'post':

			$message = __( 'Warning: %s is currently editing this post' );

			break;

		case 'page':

			$message = __( 'Warning: %s is currently editing this page' );

			break;

		default:

			$message = __( 'Warning: %s is currently editing this.' );

	}



	$message = sprintf( $message, esc_html( $last_user_name ) );

	echo "<div class='error'><p>$message</p></div>";

}

4295

_admin_notice_multisite_activate_plugins_page

Definition:
function _admin_notice_multisite_activate_plugins_page() {}

Outputs the notice message for multisite regarding activation of plugin page.

Source code

function _admin_notice_multisite_activate_plugins_page() {

	$message = sprintf( __( 'The plugins page is not visible to normal users. It must be activated first. %s' ), '<a href="' . esc_url( admin_url( 'ms-options.php#menu' ) ) . '">' . __( 'Activate' ) . '</a>' );

	echo "<div class='error'><p>$message</p></div>";

}

4293

_add_themes_utility_last

Definition:
function _add_themes_utility_last() {}

Source code

function _add_themes_utility_last() {

	// Must use API on the admin_menu hook, direct modification is only possible on/before the _admin_menu hook

	add_submenu_page('themes.php', _x('Editor', 'theme editor'), _x('Editor', 'theme editor'), 'edit_themes', 'theme-editor.php');

}

4291