Automattic\WooCommerce\Admin
PageController::get_instance()
We want a single instance of this class so we can accurately track registered menus and pages.
Method of the class: PageController{}
No Hooks.
Return
null
. Nothing (null).
Usage
$result = PageController::get_instance();
PageController::get_instance() PageController::get instance code WC 9.7.1
public static function get_instance() { if ( ! self::$instance ) { self::$instance = new self(); } return self::$instance; }