wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



image_attachment_fields_to_save › WordPress Function

Da2.5.0
Deprecato6.0.0
image_attachment_fields_to_save ( $post, $attachment )
Parametri: (2)
  • (array) $post The WP_Post attachment object converted to an array.
    Richiesto:
  • (array) $attachment An array of attachment metadata.
    Richiesto:
Ritorna:
  • (array) Attachment post object converted to an array.
Definito a:
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.



Sorgenti

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

	return $post;
}