pagehook, 'main', $priority ); } /** * Echo out the content of a meta box. * * @since 2.5.0 * * @param object $object Object passed to do_meta_boxes function. * @param array $meta_box Array of parameters passed to add_meta_box function. */ public function do_meta_box( $object, $meta_box ) { $view = $this->views_base . '/meta-boxes/' . $meta_box['id'] . '.php'; if ( is_file( $view ) ) { include $view; } } /** * Initialize the settings page. * * @since 1.8.0 */ public function settings_init() { add_action( 'load-' . $this->pagehook, array( $this, 'metaboxes' ) ); add_action( $this->pagehook . '_settings_page_boxes', array( $this, 'do_metaboxes' ) ); if ( method_exists( $this, 'layout_columns' ) ) { add_filter( 'screen_layout_columns', array( $this, 'layout_columns' ), 10, 2 ); } } }