*/ class Movies_Meta_Box { public function __construct() { add_action( 'add_meta_boxes', array( $this, 'add_meta_box' ) ); add_action( 'save_post', array( $this, 'save_meta_box' ) ); } public function add_meta_box() { add_meta_box( 'movie_title', __('Enter Movie Title', 'movies' ), array( $this, 'render_meta_box' ), 'movies', 'side', 'default', array( 'default_hidden' => false, ) ); } public function render_meta_box( $post ) { wp_nonce_field( 'movie_title_nonce', 'movie_title_nonce' ); $movie_title = get_post_meta( $post->ID, 'movie_title', true ); ?>