Hide Products categories from admin

on admin I want hide product categories, & Show only specified parent category

I modify the code app/controllers/backend/categories.php but not work

Find it

Add this lone here to show only the active categories

    'status'            => ObjectStatuses::ACTIVE, // Filter for active categories

3 Likes