wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



image_attachment_fields_to_save › WordPress Function

Seit2.5.0
Veraltet6.0.0
image_attachment_fields_to_save ( $post, $attachment )
Parameter: (2)
  • (array) $post The WP_Post attachment object converted to an array.
    Erforderlich: Ja
  • (array) $attachment An array of attachment metadata.
    Erforderlich: Ja
Gibt zurück:
  • (array) Attachment post object converted to an array.
Definiert in:
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.



Quellcode

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

	return $post;
}