date_save_pre filter-hookWP 2.3.0

Filters the value of a specific field before saving.

Only applied to post fields with a name which is prefixed with post_.

This is one of the variants of the dynamic hook (field_no_prefix)_save_pre

Usage

add_filter( 'date_save_pre', 'wp_kama_date_save_pre_filter' );

/**
 * Function for `date_save_pre` filter-hook.
 * 
 * @param mixed $value Value of the post field.
 *
 * @return mixed
 */
function wp_kama_date_save_pre_filter( $value ){

	// filter...
	return $value;
}
$value(mixed)
Value of the post field.

Changelog

Since 2.3.0 Introduced.

Where the hook is called

sanitize_post_field()
date_save_pre
wp-includes/post.php 3052
$value = apply_filters( "{$field_no_prefix}_save_pre", $value );

Where the hook is used in WordPress

Usage not found.