wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



media_single_attachment_fields_to_edit › WordPress Function

Od2.5.0
Przestarzałyn/a
media_single_attachment_fields_to_edit ( $form_fields, $post )
Parametry: (2)
  • (array) $form_fields An array of attachment form fields.
    Wymagane: Tak
  • (WP_Post) $post The WP_Post attachment object.
    Wymagane: Tak
Powrót:
  • (array) Filtered attachment form fields.
Zdefiniowane na:
Codex:

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



Źródło

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