pre_$field

pre_$field

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

See hook in core

Displaying hooks found in version: wordpress-6.4.3

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

  • /wp-includes/bookmark.php line 439
    			$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 2858
    			 * @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.
    			 *
    			 * The dynamic portion of the hook name, `$field_no_prefix`, refers
    			 * to the post field name.
    
  • /wp-includes/user.php line 1801
    		}
    	} 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