wp_default_editor

Advertisement

Summery Summery

Find out which editor should be displayed by default.

Syntax Syntax

wp_default_editor()

Description Description

Works out which of the two editors to display as the current editor for a user. The ‘html’ setting is for the "Text" editor tab.

Return Return

(string) Either 'tinymce', or 'html', or 'test'

Source Source

File: wp-includes/general-template.php

				}
			}

			$atts['rel']  = $relation_type;
			$atts['href'] = $url;

			$unique_urls[ $url ] = $atts;
		}

		foreach ( $unique_urls as $atts ) {
			$html = '';

			foreach ( $atts as $attr => $value ) {
				if ( ! is_scalar( $value )
					|| ( ! in_array( $attr, array( 'as', 'crossorigin', 'href', 'pr', 'rel', 'type' ), true ) && ! is_numeric( $attr ) )
				) {

Advertisement

Changelog Changelog

Changelog
Version Description
2.5.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.