WordPress开发者和主题制作者的搜索引擎



wp_enqueue_editor ›

Since4.8.0
已弃用n/a
wp_enqueue_editor ( 没有参数 )
用户:
  • _WP_Editors
定义在:
文档:

Outputs the editor scripts, stylesheets, and default settings.

The editor can be initialized when needed after page load. See wp.editor.initialize() in wp-admin/js/editor.js for initialization options.



源码

function wp_enqueue_editor() {
	if ( ! class_exists( '_WP_Editors', false ) ) {
		require( ABSPATH . WPINC . '/class-wp-editor.php' );
	}

	_WP_Editors::enqueue_default_editor();
}