woocommerce_register_log_handlers хук-фильтр . WC 1.0
Constructor for the logger.
Использование
add_filter( 'woocommerce_register_log_handlers', 'filter_function_name_5841' ); function filter_function_name_5841( $handlers ){ // filter... return $handlers; }
- $handlers(массив)
- Optional. Array of log handlers. If $handlers is not provided, the filter 'woocommerce_register_log_handlers' will be used to define the handlers. If $handlers is provided, the filter will not be applied and the handlers will be used directly.
Где вызывается хук
woocommerce_register_log_handlers
woocommerce/includes/class-wc-logger.php 41
$handlers = apply_filters( 'woocommerce_register_log_handlers', array() );
Где используется хук в ядре WooCommerce
woocommerce/includes/class-wc-logger.php 2043
add_filter( 'woocommerce_register_log_handlers', 'wc_register_default_log_handler' );