Automattic\WooCommerce\Internal\OrderWithdrawal
OrderWithdrawalController::register
Register hooks.
Method of the class: OrderWithdrawalController{}
No Hooks.
Returns
null. Nothing (null).
Usage
$OrderWithdrawalController = new OrderWithdrawalController(); $OrderWithdrawalController->register(): void;
Changelog
| Since 11.1.0 | Introduced. |
OrderWithdrawalController::register() OrderWithdrawalController::register code WC 11.1.2
public function register(): void {
add_action( FeaturesController::FEATURE_ENABLED_CHANGED_ACTION, array( $this, 'maybe_flush_rewrite_rules' ), 10, 1 );
add_filter( 'woocommerce_get_query_vars', array( $this, 'add_query_var' ), 10, 1 );
add_filter( 'woocommerce_endpoint_' . self::ENDPOINT_KEY . '_title', array( $this, 'get_endpoint_title' ), 10, 1 );
add_filter( 'woocommerce_settings_pages', array( $this, 'add_endpoint_setting' ), 10, 1 );
add_action( 'woocommerce_account_' . self::ENDPOINT_KEY . '_endpoint', array( $this, 'render_view' ) );
add_action( 'woocommerce_before_delete_order', array( $this->form_processor, 'delete_order_withdrawal_inbox_note_for_order' ), 10, 1 );
add_action( 'before_delete_post', array( $this->form_processor, 'delete_order_withdrawal_inbox_note_for_order' ), 10, 1 );
add_action( 'woocommerce_privacy_remove_order_personal_data', array( $this->form_processor, 'delete_order_withdrawal_inbox_note_for_order' ), 10, 1 );
add_action( 'init', array( $this, 'maybe_register_feature_highlight_notification' ), 10, 0 );
}