WP_CLI\Utils\launch_editor_for_input()


目录

Launch system's $EDITOR for the user to edit some text.


Usage

WP_CLI\Utils\launch_editor_for_input( $input, $title = WP-CLI, $ext = tmp )
$input (string) Some form of text to edit (e.g. post content).
$title (string) Title to display in the editor.
$ext (string) Extension to use with the temp file.
@return (string|bool) text, if file is saved from editor; false, if no change to file.

Internal API documentation is generated from the WP-CLI codebase on every release. To suggest improvements, please submit a pull request.



版本号 #1
由 cocobook-sync 创建于 2026-10-28 11:41:13 UTC
由 cocobook-sync 更新于 2026-10-28 11:41:13 UTC