wp_prepare_attachment_for_js

wp_prepare_attachment_for_js

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('wp_prepare_attachment_for_js') is found 1 times:

  • /wp-includes/media.php line 4699
    4695
    4696
    4697
    4698
    4699
    4700
    4701
    4702
    4703
    4704
    4705
         * @param array       $response   Array of prepared attachment data. See {@see wp_prepare_attachment_for_js()}.
         * @param WP_Post     $attachment Attachment object.
         * @param array|false $meta       Array of attachment meta data, or false if there is none.
         */
        return apply_filters( 'wp_prepare_attachment_for_js', $response, $attachment, $meta );
    }
     
    /**
     * Enqueues all scripts, styles, settings, and templates necessary to use
     * all media JS APIs.
     *

See this hook used in plugins: