woocommerce_integration_title
Return the title for admin screens.
Description
(string) apply_filters( 'woocommerce_integration_title', (unknown) $this_method_title, (unknown) $instance );
Returns (string)
Parameters (2)
- 0. $this_method_title (unknown)
- The this method title.
- 1. $instance (unknown)
- The instance.
Usage
- To run the hook, copy the example below.
- $this_method_title = apply_filters( 'woocommerce_integration_title', $this_method_title, $instance );
- if ( !empty( $this_method_title ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the woocommerce_integration_title callback
- function filter_woocommerce_integration_title( $this_method_title, $instance ) {
- // make filter magic happen here...
- return $this_method_title;
- };
- // add the filter
- add_filter( 'woocommerce_integration_title', 'filter_woocommerce_integration_title', 10, 2 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'woocommerce_integration_title', 'filter_woocommerce_integration_title', 10, 2 );
Defined (1)
The filter is defined in the following location(s).
- /includes/abstracts/abstract-wc-integration.php
- return apply_filters( 'woocommerce_integration_title', $this->method_title, $this );