wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



image_attachment_fields_to_save › WordPress Function

Od2.5.0
Przestarzały6.0.0
image_attachment_fields_to_save ( $post, $attachment )
Parametry: (2)
  • (array) $post The WP_Post attachment object converted to an array.
    Wymagane: Tak
  • (array) $attachment An array of attachment metadata.
    Wymagane: Tak
Powrót:
  • (array) Attachment post object converted to an array.
Zdefiniowane na:
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.



Źródło

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

	return $post;
}