Home / Admin / change the name of the Commission column
Duplicate Snippet

Embed Snippet on Your Site

change the name of the Commission column

Code Preview
php
<?php
if ( ! function_exists( 'wcv_change_commission_table_columns_name' ) ) {
	/**
	 * Change the name of the commission table columns.
	 *
	 * @param array $columns Columns.
	 * @return array
	 */
	function wcv_change_commission_table_columns_name( $columns ) {
		$columns['total_due'] = __( 'Whatever', 'wc-vendors' );
		return $columns;
	}
	add_filter( 'wcvendors_commissions_columns', 'wcv_change_commission_table_columns_name', 10, 1 );
}

Comments

Add a Comment