# $ordersPage->isDescendantOf()

> Checks if the page is a descendant of the given page

- Source: `src/Cms/Page.php#L637` <https://github.com/getkirby/kirby/blob/6.0.0-beta.1/src/Cms/Page.php#L637>
- Inherited from Kirby, not part of the Merx API. See <https://getkirby.com/docs/reference>.

```php
$ordersPage->isDescendantOf(Page|string $parent): bool
```

## Parameters

| Name | Type | Default |
| --- | --- | --- |
| `$parent` | `Page\|string` | `–` |

## Return type

`bool`

## Parent class

`Wagnerwagner\Merx\OrdersPage` inherited from `Kirby\Cms\Page`
