pre_$field

pre_$field

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('pre_$field') is found 3 times:

  • /wp-includes/bookmark.php line 440
    			$value = esc_attr( $value );
    		}
    	} elseif ( 'db' === $context ) {
    		/** This filter is documented in wp-includes/post.php */
    		$value = apply_filters( "pre_{$field}", $value );
    	} else {
    		/** This filter is documented in wp-includes/post.php */
    		$value = apply_filters( "{$field}", $value, $bookmark_id, $context );
    
    		if ( 'attribute' === $context ) {
    			$value = esc_attr( $value );
    
  • /wp-includes/post.php line 3022
    			 * @since 2.3.0
    			 *
    			 * @param mixed $value Value of the post field.
    			 */
    			$value = apply_filters( "pre_{$field}", $value );
    
    			/**
    			 * Filters the value of a specific field before saving.
    			 *
    			 * Only applied to post fields with a name which is prefixed with `post_`.
    			 *
    
  • /wp-includes/user.php line 1848
    		}
    	} elseif ( 'db' === $context ) {
    		if ( $prefixed ) {
    			/** This filter is documented in wp-includes/post.php */
    			$value = apply_filters( "pre_{$field}", $value );
    		} else {
    
    			/**
    			 * Filters the value of a user field in the 'db' context.
    			 *
    			 * The dynamic portion of the hook name, `$field`, refers to the prefixed user