format_to_edit WordPress Filter Hook

The format_to_edit hook is used to format the post content before it is edited in the WordPress editor. This hook is called when the post is loaded in the editor. The hook can be used to modify the post content before it is edited.

apply_filters( 'format_to_edit', string $content ) #

Filters the text to be formatted for editing.


Parameters

$content

(string)The text, prior to formatting for editing.


Top ↑

Source

File: wp-includes/formatting.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
1.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More