Automattic\WooCommerce\Internal\Admin\Settings
PaymentsController::delayed_register()
Delayed hook registration.
Метод класса: PaymentsController{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$PaymentsController = new PaymentsController(); $PaymentsController->delayed_register();
Код PaymentsController::delayed_register() PaymentsController::delayed register WC 9.6.0
public function delayed_register() { // Don't do anything if the feature is not enabled. if ( ! Features::is_enabled( 'reactify-classic-payments-settings' ) ) { return; } add_action( 'admin_menu', array( $this, 'add_menu' ) ); add_filter( 'woocommerce_admin_shared_settings', array( $this, 'preload_settings' ) ); add_filter( 'woocommerce_admin_allowed_promo_notes', array( $this, 'add_allowed_promo_notes' ) ); }