admin_created_user_subject

Definition:
function admin_created_user_subject( $text ) {}

Parameters

  • $text

Source code

	function admin_created_user_subject( $text ) {

		return sprintf( __( '[%s] Your site invite' ), get_bloginfo( 'name' ) );

	}

399

admin_created_user_email

Definition:
function admin_created_user_email( $text ) {}

Parameters

  • $text

Source code

	function admin_created_user_email( $text ) {

		/* translators: 1: Site name, 2: site URL, 3: role */

		return sprintf( __( 'Hi,

You\'ve been invited to join \'%1$s\' at

%2$s as a %3$s.

If you do not want to join this site please ignore

this email. This invitation will expire in a few days.



Please click the following link to activate your user account:

%%s' ), get_bloginfo('name'), site_url(), esc_html( $_REQUEST[ 'role' ] ) );

	}

397

admin_color_scheme_picker

Definition:
function admin_color_scheme_picker() {}

Display the default admin color scheme picker (Used in user-edit.php)

Source code

function admin_color_scheme_picker() {

	global $_wp_admin_css_colors, $user_id; ?>

<fieldset><legend class="screen-reader-text"><span><?php _e('Admin Color Scheme')?></span></legend>

<?php

$current_color = get_user_option('admin_color', $user_id);

if ( empty($current_color) )

	$current_color = 'fresh';

foreach ( $_wp_admin_css_colors as $color => $color_info ): ?>

<div class="color-option"><input name="admin_color" id="admin_color_<?php echo $color; ?>" type="radio" value="<?php echo esc_attr($color) ?>" class="tog" <?php checked($color, $current_color); ?> />

	<table class="color-palette">

	<tr>

	<?php foreach ( $color_info->colors as $html_color ): ?>

	<td style="background-color: <?php echo $html_color ?>" title="<?php echo $color ?>">&nbsp;</td>

	<?php endforeach; ?>

	</tr>

	</table>



	<label for="admin_color_<?php echo $color; ?>"><?php echo $color_info->name ?></label>

</div>

	<?php endforeach; ?>

</fieldset>

<?php

}

395

adjacent_post_link

Definition:
function adjacent_post_link($format, $link, $in_same_cat = false, $excluded_categories = '', $previous = true) {}

Display adjacent post link.
Can be either next post link or previous.

Parameters

  • string $format: Link anchor format.
  • string $link: Link permalink format.
  • bool $in_same_cat: Optional. Whether link should be in a same category.
  • array|string $excluded_categories: Optional. Array or comma-separated list of excluded category IDs.
  • bool $previous: Optional, default is true. Whether to display link to previous or next post.

Defined filters

  • the_title
    apply_filters('the_title', $title, $post->ID)
  • {$adjacent}_post_link
    apply_filters( "{$adjacent}_post_link", $format, $link )

Source code

function adjacent_post_link($format, $link, $in_same_cat = false, $excluded_categories = '', $previous = true) {

	if ( $previous && is_attachment() )

		$post = & get_post($GLOBALS['post']->post_parent);

	else

		$post = get_adjacent_post($in_same_cat, $excluded_categories, $previous);



	if ( !$post )

		return;



	$title = $post->post_title;



	if ( empty($post->post_title) )

		$title = $previous ? __('Previous Post') : __('Next Post');



	$title = apply_filters('the_title', $title, $post->ID);

	$date = mysql2date(get_option('date_format'), $post->post_date);

	$rel = $previous ? 'prev' : 'next';



	$string = '<a href="'.get_permalink($post).'" rel="'.$rel.'">';

	$link = str_replace('%title', $title, $link);

	$link = str_replace('%date', $date, $link);

	$link = $string . $link . '</a>';



	$format = str_replace('%link', $link, $format);



	$adjacent = $previous ? 'previous' : 'next';

	echo apply_filters( "{$adjacent}_post_link", $format, $link );

393

adjacent_posts_rel_link_wp_head

Definition:
function adjacent_posts_rel_link_wp_head() {}

Display relational links for the posts adjacent to the current post for single post pages.
This is meant to be attached to actions like ‘wp_head’. Do not call this directly in plugins or theme templates.

Source code

function adjacent_posts_rel_link_wp_head() {

	if ( !is_singular() || is_attachment() )

		return;

	adjacent_posts_rel_link();

}

391