Skip to content

Commit

Permalink
filter amp_template_dir added
Browse files Browse the repository at this point in the history
this filter might help to use completely different template files.
  • Loading branch information
mustafauysal committed Apr 6, 2016
1 parent 160afb4 commit 4fa39e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-amp-post-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class AMP_Post_Template {
private $data;

public function __construct( $post_id ) {
$this->template_dir = AMP__DIR__ . '/templates';
$this->template_dir = apply_filters( 'amp_template_dir', AMP__DIR__ . '/templates' );

$this->ID = $post_id;
$this->post = get_post( $post_id );
Expand Down

0 comments on commit 4fa39e2

Please sign in to comment.