W3cubDocs

/WordPress

apply_filters( “edit_{$field}”, mixed $value, int $post_id )

Filters the value of a specific post field to edit.

Description

The dynamic portion of the hook name, $field, refers to the post field name. Possible filter names include:

  • edit_post_author
  • edit_post_date
  • edit_post_date_gmt
  • edit_post_content
  • edit_post_title
  • edit_post_excerpt
  • edit_post_status
  • edit_post_password
  • edit_post_name
  • edit_post_modified
  • edit_post_modified_gmt
  • edit_post_content_filtered
  • edit_post_parent
  • edit_post_type
  • edit_post_mime_type

Parameters

$valuemixed
Value of the post field.
$post_idint
Post ID.

Source

$value = apply_filters( "edit_{$field}", $value, $post_id );

Changelog

Version Description
2.3.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/edit_field