Skip to content
Snippets Groups Projects
Commit 525498c3 authored by Erick Hitter's avatar Erick Hitter
Browse files

Ensure metabox appears on all supported posts types. Fixes #3.

parent 6eb90f6f
Branches
Tags
No related merge requests found
...@@ -59,7 +59,9 @@ class Automatically_Paginate_Posts { ...@@ -59,7 +59,9 @@ class Automatically_Paginate_Posts {
* @return null * @return null
*/ */
function action_add_meta_boxes() { function action_add_meta_boxes() {
add_meta_box( 'autopaging', 'Post Autopaging', array( $this, 'meta_box_autopaging' ), 'post', 'side' ); foreach ( $this->post_types as $post_type ) {
add_meta_box( 'autopaging', 'Post Autopaging', array( $this, 'meta_box_autopaging' ), $post_type, 'side' );
}
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment