woocommerce_logger_handler_options
Filter the list of logging handlers that can be set as the default handler.
Использование
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(массив)
- An associative array of class_name => description.
Список изменений
| С версии 8.6.0 | Введена. |
Где вызывается хук
woocommerce_logger_handler_options
woocommerce/src/Internal/Admin/Logging/Settings.php 161
$handler_options = apply_filters( 'woocommerce_logger_handler_options', $handler_options );