woocommerce_ppay_fields
The Postepay Gateway per Woocommerce woocommerce ppay fields hook.
Description
Parameters (1)
- 0. $array — Optional. (callback) =>
array( 'ppay_number'=> __('Numero Postepay', 'woocommerce'), 'ppay_user'=> __('Intestatario Postepay', 'woocommerce') )
- The array.
Usage
- To run the hook, copy the example below.
- $array = apply_filters( 'woocommerce_ppay_fields', $array );
- if ( !empty( $array ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the woocommerce_ppay_fields callback
- function filter_woocommerce_ppay_fields( $array ) {
- // make filter magic happen here...
- return $array;
- };
- // add the filter
- add_filter( 'woocommerce_ppay_fields', 'filter_woocommerce_ppay_fields', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'woocommerce_ppay_fields', 'filter_woocommerce_ppay_fields', 10, 1 );
Defined (2)
The filter is defined in the following location(s).
- /wc-postepay.php
- $fields = apply_filters('woocommerce_ppay_fields', array(
- $fields = apply_filters('woocommerce_ppay_fields', array(