edit_$field

edit_$field

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

See hook in core

Displaying hooks found in version: wordpress-6.5.2

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