woocommerce_myparcel_settings_tabs
The WooCommerce MyParcel woocommerce myparcel settings tabs hook.
Description
Parameters (1)
- 0. $array — Optional. (array) =>
array ( 'general' => __( 'General', 'woocommerce-myparcel' ), 'export_defaults' => __( 'Default export settings', 'woocommerce-myparcel' ), 'checkout' => __( 'Checkout', 'woocommerce-myparcel' ), )
- The array.
Usage
- To run the hook, copy the example below.
- $array = apply_filters( 'woocommerce_myparcel_settings_tabs', $array );
- if ( !empty( $array ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the woocommerce_myparcel_settings_tabs callback
- function filter_woocommerce_myparcel_settings_tabs( $array ) {
- // make filter magic happen here...
- return $array;
- };
- // add the filter
- add_filter( 'woocommerce_myparcel_settings_tabs', 'filter_woocommerce_myparcel_settings_tabs', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'woocommerce_myparcel_settings_tabs', 'filter_woocommerce_myparcel_settings_tabs', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /includes/class-wcmp-settings.php
- $settings_tabs = apply_filters( 'woocommerce_myparcel_settings_tabs', array (