pre_post_guid 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 pre_post_(field)

Usage

add_filter( 'pre_post_guid', 'wp_kama_pre_post_guid_filter' );

/**
 * Function for `pre_post_guid` filter-hook.
 * 
 * @param mixed $value Value of the post field.
 *
 * @return mixed
 */
function wp_kama_pre_post_guid_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()
pre_post_guid
wp-includes/post.php 3075
$value = apply_filters( "pre_post_{$field}", $value );

Where the hook is used in WordPress

wp-includes/default-filters.php 80
add_filter( $filter, 'wp_strip_all_tags' );
wp-includes/default-filters.php 81
add_filter( $filter, 'sanitize_url' );
wp-includes/default-filters.php 82
add_filter( $filter, 'wp_filter_kses' );