Skip to content

Commit

Permalink
Don't show Link Shortcodes box on author pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanbohacek committed Apr 28, 2018
1 parent 0b26792 commit a48f47e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions includes/show-post-id.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ public function show_post_id() {
<?php
}

public function show_post_id_meta_box( $post_type ) {
add_meta_box('projects_refid', 'Link shortcodes', array( $this, 'show_post_id' ), $post_type, 'side', 'high');
public function show_post_id_meta_box( $post_type ) {
if ( in_array( $post_type, array( 'post', 'resource' ) ) ){
add_meta_box('projects_refid', 'Link shortcodes', array( $this, 'show_post_id' ), $post_type, 'side', 'high');
}
}
}

Expand Down

0 comments on commit a48f47e

Please sign in to comment.