ownload_row( $download ) . ''; } return $return; } /** * Render a download row in the table. * * @param array $download Download data. * @return string */ protected function render_order_download_row( $download ) { $return = ''; foreach ( wc_get_account_downloads_columns() as $column_id => $column_name ) { $return .= ''; if ( has_action( 'woocommerce_account_downloads_column_' . $column_id ) ) { $return .= $this->get_hook_content( 'woocommerce_account_downloads_column_' . $column_id, [ $download ] ); } else { switch ( $column_id ) { case 'download-product': if ( $download['product_url'] ) { $return .= '' . esc_html( $download['product_name'] ) . ''; } else { $return .= esc_html( $download['product_name'] ); } break; case 'download-file': $return .= '' . esc_html( $download['download_name'] ) . ''; break; case 'download-remaining': $return .= is_numeric( $download['downloads_remaining'] ) ? esc_html( $download['downloads_remaining'] ) : esc_html__( '∞', 'woocommerce' ); break; case 'download-expires': if ( ! empty( $download['access_expires'] ) ) { $return .= ''; } else { $return .= esc_html__( 'Never', 'woocommerce' ); } break; } } $return .= ''; } return $return; } }
Fatal error: Uncaught Error: Class "Automattic\WooCommerce\Blocks\BlockTypes\OrderConfirmation\Downloads" not found in /htdocs/wp-content/plugins/woocommerce/src/Blocks/BlockTypesController.php:106 Stack trace: #0 /htdocs/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Blocks\BlockTypesController->register_blocks('') #1 /htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #2 /htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /htdocs/wp-settings.php(704): do_action('init') #4 /htdocs/wp-config.php(85): require_once('/htdocs/wp-sett...') #5 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #6 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #7 /htdocs/index.php(17): require('/htdocs/wp-blog...') #8 {main} thrown in /htdocs/wp-content/plugins/woocommerce/src/Blocks/BlockTypesController.php on line 106