Update: we’ve adjusted our timing and are now planning to enable AMP on WordPress.com near the end of February, to coincide with Google’s release.
A few months ago we announced our participation in the Accelerated Mobile Pages (AMP) project, an exciting new open-source initiative which aims to provide mobile-optimized content that loads instantly, everywhere.
Since then, many of you have been testing the plugin in your local environments (thank you!), and today we’re ready for you to test AMP on your production sites as well, ahead of its official launch on WordPress.com next week near the end of February.
To enable AMP on your WordPress.com VIP site, simply add the following to your functions.php
file (customers on our VIP Go platform should add the plugin to their plugins
directory):
add_filter( 'amp_is_enabled', '__return_true', 100 );
The plugin ships with a minimal default template, and we’ve built in a number of filters so your developers can customize the experience to better match your site—read more in our documentation.
We’ll be enabling AMP by default for everyone on WordPress.com at the end of February (this does not affect sites on VIP Go); if you’d prefer not to support AMP on your site, you can proactively opt-out by adding the following to your functions.php
file:
add_filter( 'amp_is_enabled', '__return_false', 100 );
As always, if you have any feedback or bug reports, please open a ticket—or feel free to log them as issues on Github.
My complements on the detail of the readme.md file. It’s very thorough. & Congrats on the release!
Thanks! It’s been a good way to find quirks/oddities in the API / code paths. Let us know if there’s anything we can improve.