src/controller/admin/class-rating.php
public function add_meta_boxes( $post_type, $post ) {

		App::setCurrentID( 'EFG' );

		$is_active = $this->get_rating_state( $post->ID );

		if ( App::main()->is_publish_post( $post ) && $is_active ) {

			$this->add_styles();
			$this->add_scripts();

			add_meta_box(
				'info_movie-rating-movie',
				__(
					'Extensions For Grifus - Custom rating',
					'extensions-for-grifus-rating'
				),
				[ $this, 'render_meta_boxes' ],
				$post_type,
				'normal',
				'high'
			);
		}
	}
public function add_meta_boxes( $post_type, $post ) {

		App::setCurrentID( 'EFG' );

		$is_active = $this->get_rating_state( $post->ID );

		if ( App::main()->is_publish_post( $post ) && $is_active ) {

			$this->add_styles();
			$this->add_scripts();

			add_meta_box(
				'info_movie-rating-movie',
				__(
					'Extensions For Grifus - Custom rating',
					'extensions-for-grifus-rating'
				),
				[ $this, 'render_meta_boxes' ],
				$post_type,
				'normal',
				'high'
			);
		}
	}
Add meta boxes.

@since 1.0.1

@param string $post_type → post type.
@param object $post     → (WP_Post) post object.