Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: richedit_pre

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

This hook occurs 2 times in this file.

Line Code
3564            *
3565            * If a non-empty string is passed, the filter is evaluated on the wp_richedit_pre()
3566            * return after being formatted.
3567            *
3568            * @since 2.0.0
3569            * @deprecated 4.3.0
3570            *
3571            * @param string $output Text for the rich text editor.
3572            */
3573           return apply_filters( 'richedit_pre', '' );
3574      }
3575
3576      $output = convert_chars($text);
3577      $output = wpautop($output);
3578      $output = htmlspecialchars($output, ENT_NOQUOTES, get_option( 'blog_charset' ) );
3579
3580      /** This filter is documented in wp-includes/deprecated.php */
3581      return apply_filters( 'richedit_pre', $output );
3582 }
3583
3584 /**
3585  * Formats text for the HTML editor.
3586  *
3587  * Unless $output is empty it will pass through htmlspecialchars before the
3588  * {@see 'htmledit_pre'} filter is applied.
3589  *
3590  * @since 2.5.0