# sm.portal.popWorldPortalHook

Finds and pops world hook for this world if present.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.portal.popWorldPortalHook( name, world? )
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.portal.md#popworldportalhook)

**Availability:** Server only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `name` | string | The portal name. |
| `world` *(optional)* | [World](../Game-Script-Environment/Userdata/World.md) | The world to look in (Optional, defaults to world from script context) |

**Returns:**

| Type | Description |
| --- | --- |
| [Portal](../Game-Script-Environment/Userdata/Portal.md) | The portal. Nil if nothing was found. |
