public function sub_projects()
{
$sub_projects = $this->many("SELECT * FROM {$this->table} WHERE parent_project_id = %d ORDER BY active DESC, id ASC", $this->id);
/**
* Filter the list of sub-projects of a project.
*
* @since 1.0.0
*
* @param array $sub_projects An array of sub projects as GP_Project.
* @param string $project_id ID of the current project. Can be zero at the top level.
*/
$sub_projects = apply_filters('gp_projects', $sub_projects, $this->id);
return $sub_projects;
}