wcmyparcel_myaccount_tracktrace_button
The WooCommerce MyParcel wcmyparcel myaccount tracktrace button hook.
Description
Parameters (1)
- 0. $var (unknown) =>
__( 'Track&Trace', 'wooocommerce-myparcel' )
- The var.
Usage
- To run the hook, copy the example below.
- $var = apply_filters( 'wcmyparcel_myaccount_tracktrace_button', $var );
- if ( !empty( $var ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the wcmyparcel_myaccount_tracktrace_button callback
- function filter_wcmyparcel_myaccount_tracktrace_button( $var ) {
- // make filter magic happen here...
- return $var;
- };
- // add the filter
- add_filter( 'wcmyparcel_myaccount_tracktrace_button', 'filter_wcmyparcel_myaccount_tracktrace_button', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'wcmyparcel_myaccount_tracktrace_button', 'filter_wcmyparcel_myaccount_tracktrace_button', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /includes/class-wcmp-frontend.php
- 'name' => apply_filters( 'wcmyparcel_myaccount_tracktrace_button', __( 'Track&Trace', 'wooocommerce-myparcel' ) )