Genesis Title Toggle on all post types

The Genesis Title Toggle only applies to the ‘page’ post type by default, but you can modify this with the be_title_toggle_post_types filter. The code snippet below will add Genesis Title Toggle to all post types.

<?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' );
view raw functions.php hosted with ❤ by GitHub

Genesis Title Toggle