src/controller/admin/class-image.php
public function replace_when_add() {

		$state = isset( $_POST['state'] ) ? $_POST['state'] : null;
		$nonce = isset( $_POST['nonce'] ) ? $_POST['nonce'] : '';

		if ( ! wp_verify_nonce( $nonce, 'eliasis' ) && ! wp_verify_nonce( $nonce, 'customImagesGrifusAdmin' ) ) {
			die( 'Busted!' );
		}

		App::setCurrentID( 'EFG' );
		$slug = Module::CustomImagesGrifus()->getOption( 'slug' );
		$this->model->set_replace_when_add( $slug, $state );
		$response = [ 'replace-when-add' => $state ];

		echo json_encode( $response );

		die();
	}
public function replace_when_add() {

		$state = isset( $_POST['state'] ) ? $_POST['state'] : null;
		$nonce = isset( $_POST['nonce'] ) ? $_POST['nonce'] : '';

		if ( ! wp_verify_nonce( $nonce, 'eliasis' ) && ! wp_verify_nonce( $nonce, 'customImagesGrifusAdmin' ) ) {
			die( 'Busted!' );
		}

		App::setCurrentID( 'EFG' );
		$slug = Module::CustomImagesGrifus()->getOption( 'slug' );
		$this->model->set_replace_when_add( $slug, $state );
		$response = [ 'replace-when-add' => $state ];

		echo json_encode( $response );

		die();
	}
Replace image when added a movie.

@since 1.0.1