woocommerce_logger_handler_options
Filter the list of logging handlers that can be set as the default handler.
Usage
add_filter( 'woocommerce_logger_handler_options', 'wp_kama_woocommerce_logger_handler_options_filter' ); /** * Function for `woocommerce_logger_handler_options` filter-hook. * * @param array $handler_options An associative array of class_name => description. * * @return array */ function wp_kama_woocommerce_logger_handler_options_filter( $handler_options ){ // filter... return $handler_options; }
- $handler_options(array)
- An associative array of class_name => description.
Changelog
Since 8.6.0 | Introduced. |
Where the hook is called
woocommerce_logger_handler_options
woocommerce/src/Internal/Admin/Logging/Settings.php 164
$handler_options = apply_filters( 'woocommerce_logger_handler_options', $handler_options );