wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



media_post_single_attachment_fields_to_edit › WordPress Function

Depuis2.8.0
Dépréciéen/a
media_post_single_attachment_fields_to_edit ( $form_fields, $post )
Paramètres: (2)
  • (array) $form_fields An array of attachment form fields.
    Requis: Oui
  • (WP_Post) $post The WP_Post attachment object.
    Requis: Oui
Retourne:
  • (array) Filtered attachment form fields.
Défini(e) dans:
Codex:

Retrieves the post non-image attachment fields to edit form fields.



Source

function media_post_single_attachment_fields_to_edit( $form_fields, $post ) {
	unset( $form_fields['image_url'] );
	return $form_fields;
}