Check AMP state of post
-
Hi guys,
I want to check if the user is viewing an AMP-Page or not, because another plugins functions are depending on it.
For the AMP-Plugin by automattic you could use
if (function_exists( ‘is_amp_endpoint’ ) && is_amp_endpoint()) {
// do stuff
}Is there a similar way for the AMPforWP Plugin?
Thank you!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Check AMP state of post’ is closed to new replies.