Skip to content

Instantly share code, notes, and snippets.

@billerickson
Last active December 27, 2015 02:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billerickson/7251246 to your computer and use it in GitHub Desktop.
Save billerickson/7251246 to your computer and use it in GitHub Desktop.
<?php
/**
* Add Genesis Title Toggle to Events
*
* @link https://github.com/billerickson/Genesis-Title-Toggle/issues/4
* @author Bill Erickson
*
* @param array $post_types
* @return array
*/
function be_title_toggle_on_events( $post_types ) {
$post_types[] = 'events';
return $post_types;
}
add_filter( 'be_title_toggle_post_types', 'be_title_toggle_on_events' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment