Created
March 3, 2016 19:34
-
-
Save rdallaire/5ddbd7ae7ab4d4c6cbea to your computer and use it in GitHub Desktop.
custom post type for polylang
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
add_filter('pll_get_post_types', 'my_pll_get_post_types'); | |
function my_pll_get_post_types($types) { | |
return array_merge($types, array('my-cpt' => 'my-cpt')); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment