inc/post-meta-box/post-meta-box.php
// Add meta box for multiple post types
Add meta box for multiple post types
Add meta box for multiple post types
public function add() {
		foreach ($this->meta_box['pages'] as $page) {
			add_meta_box($this->id, $this->meta_box['title'], array(&$this,
				'show'
			) , $page, $this->meta_box['context'], $this->meta_box['priority']);
		}
	}
public function add ( ) { foreach ( $ this -> meta_box [ 'pages' ] as $ page ) { add_meta_box ( $ this -> id , $ this -> meta_box [ 'title' ] , array ( & $ this , 'show' ) , $ page , $ this -> meta_box [ 'context' ] , $ this -> meta_box [ 'priority' ] ) ; } }
Add meta box for multiple post types
Add meta box for multiple post types