wc_get_account_downloads_columns()
Get My Account > Downloads columns.
Hooks from the function
Return
Array
.
Usage
wc_get_account_downloads_columns();
Changelog
Since 2.6.0 | Introduced. |
wc_get_account_downloads_columns() wc get account downloads columns code WC 9.4.2
function wc_get_account_downloads_columns() { $columns = apply_filters( 'woocommerce_account_downloads_columns', array( 'download-product' => __( 'Product', 'woocommerce' ), 'download-remaining' => __( 'Downloads remaining', 'woocommerce' ), 'download-expires' => __( 'Expires', 'woocommerce' ), 'download-file' => __( 'Download', 'woocommerce' ), 'download-actions' => ' ', ) ); if ( ! has_filter( 'woocommerce_account_download_actions' ) ) { unset( $columns['download-actions'] ); } return $columns; }