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.5.2

apply_filters('wp_prepare_attachment_for_js') is found 1 times:

  • /wp-includes/media.php line 4552
    	 * @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: