edit_post_{$field}

edit_post_{$field}

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

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('edit_post_{$field}') is found 1 times:

  • /wp-includes/post.php line 2979
    			 *
    			 * @param mixed $value   Value of the post field.
    			 * @param int   $post_id Post ID.
    			 */
    			$value = apply_filters( "edit_post_{$field}", $value, $post_id );
    		}
    
    		if ( in_array( $field, $format_to_edit, true ) ) {
    			if ( 'post_content' === $field ) {
    				$value = format_to_edit( $value, user_can_richedit() );
    			} else {