Email::_edit( string $content, string $title )

Helper method to use the ‘–edit’ flag.

Description Description

Copied from Post_Command::_edit().

Top ↑

Parameters Parameters


(string) (Required) Post content.


(string) (Required) Post title.

Top ↑

Return Return


Source Source

File: cli/src/email.php

	protected function _edit( $content, $title ) { // phpcs:ignore PSR2.Methods.MethodDeclaration.Underscore
		$content = apply_filters( 'the_editor_content', $content );
		$output  = \WP_CLI\Utils\launch_editor_for_input( $content, $title );

		return ( is_string( $output ) ) ?
			apply_filters( 'content_save_pre', $output )
			: $output;

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.