Home / Admin / Change the action’s string in the refund section – “View Details”
Duplicate Snippet

Embed Snippet on Your Site

Change the action’s string in the refund section – “View Details”

Change the action's string in the refund section - "View Details"

Code Preview
php
<?php
add_filter('wcvendors_pro_table_rows_wcv_refund_request', 'change_refund_actions_labels');
function change_refund_actions_labels( $rows  )
{
    foreach ( $rows as $row ) {
		// Add filter to change the label for row with row ID.
        add_filter('wcv_refund_request_row-actions_' . $row->ID, 'change_refund_action_label');
    }
    return $rows;
}
function change_refund_action_label( $actions )
{
    $actions['view_details']['label'] = __('View', 'wcv-wcs-subscription');
    return $actions;
}

Comments

Add a Comment