wcmyparcel_filename
The WooCommerce MyParcel wcmyparcel filename hook.
Description
Parameters (2)
- 0. $filename (string)
- The filename.
- 1. $order_ids (unknown)
- The
order
ids.
Usage
- To run the hook, copy the example below.
- $filename = apply_filters( 'wcmyparcel_filename', $filename, $order_ids );
- if ( !empty( $filename ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the wcmyparcel_filename callback
- function filter_wcmyparcel_filename( $filename, $order_ids ) {
- // make filter magic happen here...
- return $filename;
- };
- // add the filter
- add_filter( 'wcmyparcel_filename', 'filter_wcmyparcel_filename', 10, 2 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'wcmyparcel_filename', 'filter_wcmyparcel_filename', 10, 2 );
Defined (1)
The filter is defined in the following location(s).
- /includes/class-wcmp-export.php
- return apply_filters( 'wcmyparcel_filename', $filename, $order_ids );