Automattic\WooCommerce\Internal\Admin\Orders
COTRedirectionController::setup()
Add hooks needed to perform our magic.
Method of the class: COTRedirectionController{}
No Hooks.
Return
null
. Nothing (null).
Usage
$COTRedirectionController = new COTRedirectionController(); $COTRedirectionController->setup(): void;
COTRedirectionController::setup() COTRedirectionController::setup code WC 9.6.0
public function setup(): void { // Only take action in cases where access to the admin screen would otherwise be denied. add_action( 'admin_page_access_denied', array( $this, 'handle_hpos_admin_requests' ) ); }