wcboleto_our_number

The WooCommerce Boleto wcboleto our number hook.

Description

apply_filters( 'wcboleto_our_number', (unknown) $order_id ); 

Parameters (1)

0. $order_id (unknown)
The order id.

Usage

To run the hook, copy the example below.
  1. $order_id = apply_filters( 'wcboleto_our_number', $order_id ); 
  2.  
  3. if ( !empty( $order_id ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the wcboleto_our_number callback 
  2. function filter_wcboleto_our_number( $order_id ) { 
  3. // make filter magic happen here... 
  4. return $order_id
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'wcboleto_our_number', 'filter_wcboleto_our_number', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'wcboleto_our_number', 'filter_wcboleto_our_number', 10, 1 ); 

Defined (2)

The filter is defined in the following location(s).

/includes/class-wc-boleto-gateway.php  
  1. $data['nosso_numero'] = apply_filters( 'wcboleto_our_number', $order->id ); 
/includes/class-wc-boleto-admin.php  
  1. $data['nosso_numero'] = apply_filters( 'wcboleto_our_number', $order->id );