Skip to content

AMP for WordPress

  • Showcase
  • Ecosystem
  • Documentation
  • Blog
  • Support
  • About
Download
  • Success with WordPress
  • Why the AMP Plugin
    • Page Experience
    • AMP and Page Experience
    • AMP and ROI
    • Means to an End
  • Getting Started
    • Template Modes
    • Standard Mode
    • Transitional Mode
    • Reader Mode
    • Support
    • Reader Mode Themes
    • Mobile Redirection
    • AMP Optimizer
    • Plugin Suppression
    • Analytics
    • Paired URL Structures
    • Developer Tools
      • Toggling Dev Tools
    • Settings Screen
      • Site Scan
      • Other Section
      • Sandboxing (Experimental)
    • WP-CLI Commands
    • Caching
      • Persistent Object Caching
      • Page Caching with AMP and WordPress
  • How the AMP Plugin Works
    • AMP Validator
    • AMP & CSS
  • Playbooks
    • Adding Reader Themes
    • Handling Form Submissions
    • AMP Plugin Troubleshooting Guide
    • Enqueuing Scripts And Using amp-bind
    • Keyboard Accessible Navigation Menus
    • Mobile Nav Menus
    • Navigation Sub-menu Buttons
    • Implementing Interactivity
    • Custom Embed Handlers
    • Handling AMP Legacy Themes
    • Extracting Image Dimensions
    • Custom Sanitizers
  • Extensions & Mini-Plugins
  • Reference
  • FAQ

amp_post_template_dir

apply_filters( 'amp_post_template_dir' )

Description #

Filters the Reader template directory.


Source #

File: includes/templates/class-amp-post-template.php


Changelog #

Changelog
Version Description
0.3.3 Introduced.

Of course, this site is using this official AMP for WordPress plugin in Standard mode.

  • Showcase
  • Ecosystem
  • Documentation
  • Blog
  • Support
  • About
  • Showcase
  • Ecosystem
  • Documentation
  • Blog
  • Support
  • About

© OpenJS Foundation and AMP Project contributors. All rights reserved. The OpenJS Foundation has registered trademarks and uses trademarks. For a list of trademarks of the OpenJS Foundation, please see our Trademark Policy and Trademark List. Trademarks and logos not indicated on the list of OpenJS Foundation trademarks are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.

The services available at cdn.ampproject.org are provided by Google and the respective privacy policy applies.

  • Privacy Policy
  • Terms of service