Last active
June 23, 2019 17:43
-
-
Save ScottTravisHartley/4e70d85e539296dec485e71dea9ced77 to your computer and use it in GitHub Desktop.
Enable Genesis Title Toggle For Multiple Post types
This file contains hidden or 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
| function sertmedia_title_toggle_all_post_types( $post_types ) { | |
| $post_types = get_post_types( | |
| array( | |
| 'public' => true, | |
| '_builtin' => false, | |
| ), | |
| 'names' | |
| ); | |
| $post_types[] = 'post'; | |
| $post_types[] = 'portfolio'; | |
| $post_types[] = 'news'; | |
| return $post_types; | |
| } | |
| add_filter( 'be_title_toggle_post_types', 'sertmedia_title_toggle_all_post_types' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment