Un motore di ricerca WordPress per sviluppatori e autori di temi



media_single_attachment_fields_to_edit ›

Da2.5.0
Deprecaton/a
media_single_attachment_fields_to_edit ( $form_fields, $post )
Parametri: (2)
  • (array) $form_fields An array of attachment form fields.
    Richiesto:
  • (WP_Post) $post The WP_Post attachment object.
    Richiesto:
Ritorna:
  • (array) Filtered attachment form fields.
Definito a:
Codex:

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



Sorgenti

function media_single_attachment_fields_to_edit( $form_fields, $post ) {
	unset( $form_fields['url'], $form_fields['align'], $form_fields['image-size'] );
	return $form_fields;
}