WP-CLI

A command line interface for WordPress

Docs » Internal API » Input

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, $filename = WP-CLI )
string () $content Some form of text to edit (e.g. post content)
@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.