get_the_ID(), 'align' => $block_attributes['purchase_link_align'], 'show_price' => (bool) $block_attributes['show_price'], 'direct' => 'direct' === edd_get_download_button_behavior( get_the_ID() ), ); echo EDD\Blocks\Downloads\buy_button( $args ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>