wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



media_post_single_attachment_fields_to_edit › WordPress Function

Desde2.8.0
Obsoleton/a
media_post_single_attachment_fields_to_edit ( $form_fields, $post )
Parâmetros: (2)
  • (array) $form_fields An array of attachment form fields.
    Required: Yes
  • (WP_Post) $post The WP_Post attachment object.
    Required: Yes
Retorna:
  • (array) Filtered attachment form fields.
Definido em:
Codex:

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



Fonte

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