wc_logs_settings_form_fields хук-событиеWC 8.6.0

Action fires after the built-in logging settings controls have been rendered.

This is intended as a way to allow other logging settings controls to be added by extensions.

Использование

add_action( 'wc_logs_settings_form_fields', 'wp_kama_wc_logs_settings_form_fields_action' );

/**
 * Function for `wc_logs_settings_form_fields` action-hook.
 * 
 * @param bool $enabled True if logging is currently enabled.
 *
 * @return void
 */
function wp_kama_wc_logs_settings_form_fields_action( $enabled ){

	// action...
}
$enabled(true|false)
True if logging is currently enabled.

Список изменений

С версии 8.6.0 Введена.

Где вызывается хук

Settings::render_form()
wc_logs_settings_form_fields
woocommerce/src/Internal/Admin/Logging/Settings.php 434
do_action( 'wc_logs_settings_form_fields', $this->logging_is_enabled() );

Где используется хук в WooCommerce

Использование не найдено.