format_to_edit
Filters the text to be formatted for editing.
Usage
add_filter( 'format_to_edit', 'wp_kama_format_to_edit_filter' ); /** * Function for `format_to_edit` filter-hook. * * @param string $content The text, prior to formatting for editing. * * @return string */ function wp_kama_format_to_edit_filter( $content ){ // filter... return $content; }
- $content(string)
- The text, prior to formatting for editing.
Changelog
Since 1.2.0 | Introduced. |
Where the hook is called
format_to_edit
wp-includes/formatting.php 2746
$content = apply_filters( 'format_to_edit', $content );