wppaste
WordPress

apply_filters( 'attachment_fields_to_edit', array $form_fields, WP_Post $post )

Since
2.5.0
Filters the attachment fields to edit.

Parameters

$form_fieldsarray
An array of attachment form fields.
$postWP_Post
The WP_Post attachment object.

Fired at · 2

  • wp-admin/includes/media.php:1509get_attachment_fields_to_edit()
  • wp-admin/includes/media.php:1935get_compat_media_markup()

Source

	 *	 * @since 2.5.0	 *	 * @param array   $form_fields An array of attachment form fields.	 * @param WP_Post $post        The WP_Post attachment object.	 */	$form_fields = apply_filters( 'attachment_fields_to_edit', $form_fields, $post ); 	return $form_fields;} /** * Retrieves HTML for media items of post gallery.

History

Introduced in 2.5.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 6.8.8 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.