the_editor

Definition:
function the_editor($content, $id = 'content', $prev_id = 'title', $media_buttons = true, $tab_index = 2, $extended = true) {}

Display editor: TinyMCE, HTML, or both.

Parameters

  • string $content: Textarea content.
  • string $id: Optional, default is ‘content’. HTML ID attribute value.
  • string $prev_id: Optional, not used
  • bool $media_buttons: Optional, default is true. Whether to display media buttons.
  • int $tab_index: Optional, not used
  • $extended

Source code

function the_editor($content, $id = 'content', $prev_id = 'title', $media_buttons = true, $tab_index = 2, $extended = true) {



	wp_editor( $content, $id, array( 'media_buttons' => $media_buttons ) );

	return;

}

17121

strip_shortcode_tag

Definition:
function strip_shortcode_tag( $m ) {}

Parameters

  • $m

Source code

function strip_shortcode_tag( $m ) {

	// allow [[foo]] syntax for escaping a tag

	if ( $m[1] == '[' && $m[6] == ']' ) {

		return substr($m[0], 1, -1);

	}



	return $m[1] . $m[6];

}

17077

start_post_rel_link

Definition:
function start_post_rel_link($title = '%title', $in_same_cat = false, $excluded_categories = '') {}

Display relational link for the first post.

Parameters

  • string $title: Optional. Link title format.
  • bool $in_same_cat: Optional. Whether link should be in a same category.
  • string $excluded_categories: Optional. Excluded categories IDs.

Source code

function start_post_rel_link($title = '%title', $in_same_cat = false, $excluded_categories = '') {

	_deprecated_function( __FUNCTION__, '3.3' );



	echo get_boundary_post_rel_link($title, $in_same_cat, $excluded_categories, true);

}

17066