_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)
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; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.8.0 | Introduced. |