_WP_Editors::get_baseurl() WordPress Method

The WP_Editors::get_baseurl() method is used to get the base URL for the WordPress editor. This is useful for plugins and themes that need to include their own scripts and styles in the editor.

_WP_Editors::get_baseurl() #

Returns the TinyMCE base URL.


Return

(string)


Top ↑

Source

File: wp-includes/class-wp-editor.php

	public static function get_baseurl() {
		if ( empty( self::$baseurl ) ) {
			self::$baseurl = includes_url( 'js/tinymce' );
		}

		return self::$baseurl;
	}


Top ↑

Changelog

Changelog
VersionDescription
4.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.