钩子文档

print_default_editor_scripts

💡 云策文档标注

概述

print_default_editor_scripts 是一个 WordPress 动作钩子,在编辑器脚本加载后触发,用于后续初始化。它关联于 WP_Editors 类的 print_default_editor_scripts() 方法。

关键要点

  • 触发时机:在所有脚本和设置输出后,编辑器脚本加载时触发。
  • 相关函数:由 WP_Editors::print_default_editor_scripts() 方法调用,用于输出所有编辑器脚本和默认设置。
  • 版本历史:自 WordPress 4.8.0 版本引入。

📄 原文内容

Fires when the editor scripts are loaded for later initialization, after all scripts and settings are printed.

Source

do_action( 'print_default_editor_scripts' );

Changelog

Version Description
4.8.0 Introduced.