In Magento 2 I want to call the grandchildren of the parent category.
CURRENT CODE
<?php
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$request = $objectManager->get('Magento\Framework\App\Action\Context')->getRequest();
//echo $request->getFullActionName();
if($request->getFullActionName() === "catalog_category_view"){
?>
<?php
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$category = $objectManager->get('Magento\Framework\Registry')->registry('current_category');
/*echo $category->getName();*/
$SubCategories = $category->getChildrenCategories();
?>
Can anyone please suggest an update to the above to call the grandchildren rather than children?