Home / Admin / Change the “Commission” header for the Recent Orders table
Duplicate Snippet

Embed Snippet on Your Site

Change the “Commission” header for the Recent Orders table

Change the "Commission" header for the Recent Orders table using the "wcvendors_recent_order_table_columns" filter hook.

Code Preview
php
<?php
add_filter( 'wcvendors_recent_order_table_columns', 'change_commission_label' );
/**
 * Change the label of the commission column
 *
 * @param array $columns The columns to display.
 *
 * @return array
 */
function change_commission_label( $columns ) {
	$columns['commission'] = __( 'Fees', 'wcvendors-pro' );
	return $columns;
}

Comments

Add a Comment