amp_is_enabled

apply_filters( 'amp_is_enabled',  bool $enabled )

Description #

Filters whether AMP is enabled on the current site.

Useful if the plugin is network activated and you want to turn it off on select sites.


Parameters #

$enabled

Whether the AMP plugin's functionality should be enabled.



Changelog #

Changelog
Version Description
2.0 Filter now runs earlier at plugins_loaded (with earliest priority) rather than at the after_setup_theme action.
0.2 Introduced.