WP Simple Pay: Disable Stripe Payment Terms

/** * @link https://library.wpcode.com/snippet/ro8wy3ow/ */ add_filter( ‘simpay_payment_element_config’, /** * @param arary $params Payment Element configuration. * @return array */ function( $config ) { $config[‘terms’][‘usBankAccount’] = ‘never’; $config[‘terms’][‘card’] = ‘never’; return $config; } );Continue reading

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

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’]…Continue reading