putler_connector_get_order_count
The WooCommerce Putler Connector putler connector get order count hook.
Description
Parameters (1)
- 0. $int (int)
- The int.
Usage
- To run the hook, copy the example below.
- $int = apply_filters( 'putler_connector_get_order_count', $int );
- if ( !empty( $int ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the putler_connector_get_order_count callback
- function filter_putler_connector_get_order_count( $int ) {
- // make filter magic happen here...
- return $int;
- };
- // add the filter
- add_filter( 'putler_connector_get_order_count', 'filter_putler_connector_get_order_count', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'putler_connector_get_order_count', 'filter_putler_connector_get_order_count', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /classes/class.putler-connector.php
- $order_count = (!empty($token_selected)) ? apply_filters( 'putler_connector_get_order_count', 0 ) : 0;