woocommerce_email_downloads_columns
Использование
add_filter( 'woocommerce_email_downloads_columns', 'wp_kama_woocommerce_email_downloads_columns_filter' ); /** * Function for `woocommerce_email_downloads_columns` filter-hook. * * @param $array * * @return */ function wp_kama_woocommerce_email_downloads_columns_filter( $array ){ // filter... return $array; }
- $array
- -
Где вызывается хук
woocommerce_email_downloads_columns
woocommerce/includes/class-wc-emails.php 448-455
$columns = apply_filters( 'woocommerce_email_downloads_columns', array( 'download-product' => __( 'Product', 'woocommerce' ), 'download-expires' => __( 'Expires', 'woocommerce' ), 'download-file' => __( 'Download', 'woocommerce' ), ) );