Created
February 16, 2018 07:42
-
-
Save danmaby/179f0449eb73ef308f103a94266a6e78 to your computer and use it in GitHub Desktop.
Amazon Polly for WordPress - Custom Post Types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Amazon Polly "Events" CPT | |
**/ | |
function my_amazon_polly_post_types( $post_types ) { | |
$post_types[] = 'events'; | |
return $post_types; | |
} | |
add_filter( 'amazon_polly_post_types', 'my_amazon_polly_post_types' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment