amp_get_permalink

amp_get_permalink( int $post_id )

Description #

Retrieves the full AMP-specific permalink for the given post ID.

On a site in Standard mode, this is the same as get_permalink().


Parameters #

$post_id

(Required) Post ID.


Return #

(string) AMP permalink.


Changelog #

Changelog
Version Description
0.1 Introduced.