Codex Neve
  • Developer Documentation
  • Visual Guide

Codex Neve

Search the Code Reference for more information about Neve's hooks.

Skip to content
Filter by type:
Search
Browse: Home / Functions / media_from_id()

media_from_id( int $id, string $size = 'full' )

Retrieve media URL from post id.


Parameters

$id

(Required) Post ID.

$size

(Optional) Media size.

Default value: 'full'


Return

(false|string)


Source

File: header-footer-grid/functions-template.php


			

Expand full source code Collapse full source code View on Github


Related

Used By

Used By
Used By Description
header-footer-grid/functions-template.php: get_media()

Utility method to return media url.

© Vertigo Studio SRL 2025