Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: format_to_edit

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
1099  * content, converting special characters to HTMl entities.
1100  *
1101  * @since 0.71
1102  *
1103  * @param string $content The text about to be edited.
1104  * @param bool $richedit Whether or not the $content should pass through htmlspecialchars(). Default false.
1105  * @return string The text after the filter (and possibly htmlspecialchars()) has been run.
1106  */
1107 function format_to_edit($content, $richedit = false) {
1108      $content = apply_filters('format_to_edit', $content);
1109      if (! $richedit )
1110           $content = htmlspecialchars($content);
1111      return $content;
1112 }
1113
1114 /**
1115  * Holder for the 'format_to_post' filter.
1116  *
1117  * @since 0.71