wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



image_attachment_fields_to_save › WordPress Function

Depuis2.5.0
Dépréciée6.0.0
› image_attachment_fields_to_save ( $post, $attachment )
Paramètres: (2)
  • (array) $post The WP_Post attachment object converted to an array.
    Requis: Oui
  • (array) $attachment An array of attachment metadata.
    Requis: Oui
Retourne:
  • (array) Attachment post object converted to an array.
Défini(e) dans:
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.



Source

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

	return $post;
}