diff --git a/includes/RestApi/SiteClassificationController.php b/includes/RestApi/SiteClassificationController.php index 77820fb49..863e764b3 100644 --- a/includes/RestApi/SiteClassificationController.php +++ b/includes/RestApi/SiteClassificationController.php @@ -35,18 +35,18 @@ public function register_routes() { $this->rest_base, array( 'methods' => \WP_REST_Server::READABLE, - 'callback' => array( $this, 'get_site_classification' ), + 'callback' => array( $this, 'get' ), 'permission_callback' => array( Permissions::class, 'rest_is_authorized_admin' ), ) ); } /** - * Fetch the Site Classification data using the data module helper. + * Get site classification data. * * @return array */ - public function get_site_classification() { + public function get() { if ( ! class_exists( 'NewfoldLabs\WP\Module\Data\SiteClassification' ) ) { return array(); }