Skip to content

Commit

Permalink
Merge branch 'master' into component_errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bcampeau committed Mar 21, 2016
2 parents 2d9cddb + cb8d9fc commit b28ede2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ If you want a custom template for your post type:
```
add_filter( 'amp_post_template_file', 'xyz_amp_set_review_template', 10, 3 );
function xyz_amp_set_custom_template( $file, $type, $post ) {
function xyz_amp_set_review_template( $file, $type, $post ) {
if ( 'single' === $type && 'xyz-review' === $post->post_type ) {
$file = dirname( __FILE__ ) . '/templates/my-amp-review-template.php';
}
Expand Down

0 comments on commit b28ede2

Please sign in to comment.