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



image_attachment_fields_to_save › WordPress Function

Desde2.5.0
Obsoleto6.0.0
image_attachment_fields_to_save ( $post, $attachment )
Parâmetros: (2)
  • (array) $post The WP_Post attachment object converted to an array.
    Required: Yes
  • (array) $attachment An array of attachment metadata.
    Required: Yes
Retorna:
  • (array) Attachment post object converted to an array.
Definido em:
Codex:

Was used to filter input from media_upload_form_handler() and to assign a default post_title from the file name if none supplied.



Fonte

function image_attachment_fields_to_save( $post, $attachment ) {
	_deprecated_function( __FUNCTION__, '6.0.0' );

	return $post;
}