media_post_single_attachment_fields_to_edit

The timeline below displays how wordpress function media_post_single_attachment_fields_to_edit has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.4

/**
 * Retrieves the post non-image attachment fields to edit form fields.
 *
 * @since 2.8.0
 *
 * @param array   $form_fields An array of attachment form fields.
 * @param WP_Post $post        The WP_Post attachment object.
 * @return array Filtered attachment form fields.
 */
function media_post_single_attachment_fields_to_edit($form_fields, $post)
{
    unset($form_fields['image_url']);
    return $form_fields;
}

WordPress Version: 4.4

/**
 * Retrieves the post non-image attachment fields to edito form fields.
 *
 * @since 2.8.0
 *
 * @param array   $form_fields An array of attachment form fields.
 * @param WP_Post $post        The WP_Post attachment object.
 * @return array Filtered attachment form fields.
 */
function media_post_single_attachment_fields_to_edit($form_fields, $post)
{
    unset($form_fields['image_url']);
    return $form_fields;
}

WordPress Version: 4.0

/**
 * {@internal Missing Short Description}}
 *
 * @since 2.8.0
 *
 * @param array   $form_fields An array of attachment form fields.
 * @param WP_Post $post        The WP_Post attachment object.
 * @return array Filtered attachment form fields.
 */
function media_post_single_attachment_fields_to_edit($form_fields, $post)
{
    unset($form_fields['image_url']);
    return $form_fields;
}

WordPress Version: 3.7

/**
 * {@internal Missing Short Description}}
 *
 * @since 2.8.0
 *
 * @param array $form_fields
 * @param object $post {@internal $post not used}}
 * @return array
 */
function media_post_single_attachment_fields_to_edit($form_fields, $post)
{
    unset($form_fields['image_url']);
    return $form_fields;
}