content_save_pre
This filter is documented in wp-includes/post.php
Usage
add_filter( 'content_save_pre', 'wp_kama_content_save_pre_filter' ); /** * Function for `content_save_pre` filter-hook. * * @param $wp_slash * * @return */ function wp_kama_content_save_pre_filter( $wp_slash ){ // filter... return $wp_slash; }
- $wp_slash
- -
Where the hook is called
wp-includes/customize/class-wp-customize-nav-menu-item-setting.php 725
$menu_item_value['description'] = wp_unslash( apply_filters( 'content_save_pre', wp_slash( $menu_item_value['description'] ) ) );
Where the hook is used in WordPress
wp-includes/default-filters.php 146
add_filter( $filter, 'convert_invalid_entities' );
wp-includes/default-filters.php 147
add_filter( $filter, 'balanceTags', 50 );
wp-includes/kses.php 2287
add_filter( 'content_save_pre', 'wp_filter_global_styles_post', 9 );
wp-includes/kses.php 2291
add_filter( 'content_save_pre', 'wp_filter_post_kses' );
wp-includes/kses.php 2317
remove_filter( 'content_save_pre', 'wp_filter_global_styles_post', 9 );
wp-includes/kses.php 2321
remove_filter( 'content_save_pre', 'wp_filter_post_kses' );