• Resolved Eugene.chint

    (@eugenechint)


    i need hook to change label FOR BIC/SWIFT
    USED wcvendors_settings_before_bank_details & wcv_commissions_sum_export_columns

    `add_filter( ‘wcvendors_settings_before_bank_details & wcv_commissions_sum_export_columns’, ‘use_bsb_label’ );
    function use_bsb_label( $field ){
    $field[ ‘BIC/SWIFT’ ] = ‘mY Changed label’;
    return $field;

    WHERE IS WRONG HERE

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    The label on the settings page can be updated by overriding the template or creating your own translation file. You cannot use two filters in a single filter call.

    For the export you were close.

    add_filter( ‘wcv_commissions_sum_export_columns’, ‘use_bsb_label’ );
    function use_bsb_label( $field ){
    $field[ 'bank_swift' ] = 'mY Changed label';
    return $field;
    }
    Thread Starter Eugene.chint

    (@eugenechint)

    Sorry ,late
    You cannot use two filters in a single filter call.
    yes…..that’s separate but kept for example
    …didn’t get you
    i don’t want to update template as it conflicts plugin update

    • This reply was modified 7 years, 8 months ago by Eugene.chint.
    • This reply was modified 7 years, 8 months ago by Eugene.chint.
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘changing labels’ is closed to new replies.