Skip to content

Commit

Permalink
changes so that popup maker plugin isn't cluttered with bylines
Browse files Browse the repository at this point in the history
  • Loading branch information
jhonaker-cap committed Dec 14, 2016
1 parent c69fbe7 commit 90722c0
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion cap-byline.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,14 @@
* Create person taxonomy
*/
function person_tax_create() {
// Don't want to apply person taxonomy to popup or popup_theme post types
// so filter them from the list of post types before registering
// the taxonomy
$post_types = array_diff(get_post_types(), array('popup','popup_theme'));

register_taxonomy(
'person',
get_post_types(),
$post_types,
array(
'label' => __( 'Person', 'cap-byline' ),
'rewrite' => array( 'slug' => 'person', 'with_front' => false ),
Expand Down Expand Up @@ -389,6 +394,16 @@ function cap_byline_activate() {
'operator' => '!=',
'value' => 'page',
),
array (
'param' => 'post_type',
'operator' => '!=',
'value' => 'popup',
),
array (
'param' => 'post_type',
'operator' => '!=',
'value' => 'popup_theme',
),
),

),
Expand Down

0 comments on commit 90722c0

Please sign in to comment.