Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 119478

Ovidiu on "[Plugin: WooCommerce - excelling eCommerce] need some help with a hook"

$
0
0

I would like to change some "wording" on the inside of woocommerce namely on the BACS payment I'd like to change "Sort Code" into "Branch Code".

I found where the text comes from, its contained within woocommerce/classes/gateways/bacs/class-wc-bacs.php but I want to avoid hacking the core files of this plugin.

the line looks like this:

'sort_code' => array(
                                                        'title' => __( 'Sort Code', 'woocommerce' ),
                                                        'type' => 'text',
                                                        'description' => '',
                                                        'default' => ''
                                                ),

The right hook would be (as found here: http://wcdocs.woothemes.com/codex/extending/hooks/)

woocommerce_bacs_icon

But I have no idea how to code a snippet for my functions.php to do this change.

http://wordpress.org/extend/plugins/woocommerce/


Viewing all articles
Browse latest Browse all 119478

Trending Articles