jetpack_unauth_file_upload_get_file

jetpack_unauth_file_upload_get_file

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.14.6

apply_filters('jetpack_unauth_file_upload_get_file') is found 1 times:

  • /unauth-file-upload.php line 79
    	 * @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 ) ) {
    		wp_die( esc_html__( 'Error retrieving file content.', 'jetpack' ) );
    	}
    
    	// Clean output buffer