jetpack_unauth_file_upload_get_file

jetpack_unauth_file_upload_get_file

Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: jetpack.15.2

apply_filters('jetpack_unauth_file_upload_get_file') is found 1 times:

  • /unauth-file-upload.php line 70
    	 * @param string $file_id The file ID.
    	 *
    	 * @return array|\WP_Error The file array, containing the content, name and type.
    	 */
    	$file = apply_filters( 'jetpack_unauth_file_upload_get_file', array(), $file_id );
    
    	if ( is_wp_error( $file ) || empty( $file ) || ! is_array( $file ) ) {
    		wp_die( esc_html__( 'Error retrieving file content.', 'jetpack' ) );
    	}
    
    	// Given $file can be manipulated by a filter, make sure everything is as it should be.
    

See this hook used in plugins: