« Back to Product

Documentation

IPS_GetParent

 int IPS_GetParent (int $ObjectID) 

Parameters

ObjectID

The ID of the object

Returns

The ID of the parent of the object

Description

This function returns the ID of the parent of the object with the ID ObjectID.

Example

echo IPS_GetParent(47359);
//returns, e.g.,: 0 for the main category
Any questions?