content_save_pre
The Jetpack by WordPress.com content save pre hook.
Description
Parameters (1)
- 0. $post_data_post_content (unknown)
- The post data post content.
Usage
- To run the hook, copy the example below.
- $post_data_post_content = apply_filters( 'content_save_pre', $post_data_post_content );
- if ( !empty( $post_data_post_content ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the content_save_pre callback
- function filter_content_save_pre( $post_data_post_content ) {
- // make filter magic happen here...
- return $post_data_post_content;
- };
- // add the filter
- add_filter( 'content_save_pre', 'filter_content_save_pre', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'content_save_pre', 'filter_content_save_pre', 10, 1 );
Defined (2)
The filter is defined in the following location(s).
- /modules/markdown/easy-markdown.php
- $post_data['post_content'] = apply_filters( 'content_save_pre', $post_data['post_content'] );
- $post_data['post_content'] = apply_filters( 'content_save_pre', $post_data['post_content'] );