Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
add_filter( 'amp_post_template_dir', 'lc_custom_amp_templates' );
/**
* Custom template directory for our AMP pages
*/
function lc_custom_amp_templates() {
return plugin_dir_path( __FILE__ ) . '/amp-templates';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment