rest = $rest; } /** * Events this subscriber listens to. * * @return array */ public static function get_subscribed_events() { return [ 'rest_api_init' => 'register_support_route', ]; } /** * Registers the rest support route * * @since 3.7.5 * * @return void */ public function register_support_route() { $this->rest->register_route(); } }