can_load() ) { return; } static $cross_sell = null; if ( ! is_null( $cross_sell ) ) { return; } if ( ! class_exists( '\WPMUDEV\Modules\Plugin_Cross_Sell' ) ) { require_once WPMUDEV_BLC_DIR . 'core/external/plugins-cross-sell-page/plugin-cross-sell.php'; } $submenu_params = array( 'slug' => 'broken-link-checker', 'parent_slug' => 'blc_dash', 'capability' => 'manage_options', 'menu_slug' => 'plugins_cross_sell', 'position' => 2, ); $cross_sell = new \WPMUDEV\Modules\Plugin_Cross_Sell( $submenu_params ); } /** * Check if the submodule should load * * @return bool */ protected function can_load(): bool { return boolval( apply_filters( 'wpmudev_blc_dashboard_load_cross_sell_module', ! class_exists( 'WPMUDEV_Dashboard' ) || 'free' === $this->get_membership_type() ) ); } }