pre_amp_render_post

This hook has been deprecated. Check amp_is_request() on the template_redirect action instead.

do_action( 'pre_amp_render_post',  int $post_id )

Description #

Fires before rendering a post in AMP.

This action is not triggered when 'amp' theme support is present. Instead, you should use 'template_redirect' action and check if amp_is_request().


Parameters #

$post_id

Post ID.



Changelog #

Changelog
Version Description
0.2 Introduced.