-
-
Save billerickson/4f1a90182ce957040e19b84cc57bb771 to your computer and use it in GitHub Desktop.
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
<?php | |
/** | |
* Title Toggle for all post tpyes | |
* @author Bill Erickson | |
* @see http://www.billerickson.net/code/genesis-title-toggle-on-all-post-types | |
* | |
*/ | |
function ea_title_toggle_all_post_types( $post_types ) { | |
$post_types = get_post_types( | |
array( | |
'public' => true, | |
'_builtin' => false, | |
), | |
'names' | |
); | |
$post_types[] = 'page'; | |
$post_types[] = 'post'; | |
return $post_types; | |
} | |
add_filter( 'be_title_toggle_post_types', 'ea_title_toggle_all_post_types' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment