edit_$field

edit_$field

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

See hook in core

Displaying hooks found in version: wordpress-6.7

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

  • /wp-includes/bookmark.php line 431
    	}
    
    	if ( 'edit' === $context ) {
    		/** This filter is documented in wp-includes/post.php */
    		$value = apply_filters( "edit_{$field}", $value, $bookmark_id );
    
    		if ( 'link_notes' === $field ) {
    			$value = esc_html( $value ); // textarea_escaped
    		} else {
    			$value = esc_attr( $value );
    		}
    
  • /wp-includes/post.php line 2924
    			 *
    			 * @param mixed $value   Value of the post field.
    			 * @param int   $post_id Post ID.
    			 */
    			$value = apply_filters( "edit_{$field}", $value, $post_id );
    
    			/**
    			 * Filters the value of a specific post field to edit.
    			 *
    			 * Only applied to post fields with a name which is prefixed with `post_`.
    			 *
    
  • /wp-includes/user.php line 1823
    	if ( 'edit' === $context ) {
    		if ( $prefixed ) {
    
    			/** This filter is documented in wp-includes/post.php */
    			$value = apply_filters( "edit_{$field}", $value, $user_id );
    		} else {
    
    			/**
    			 * Filters a user field value in the 'edit' context.
    			 *
    			 * The dynamic portion of the hook name, `$field`, refers to the prefixed user