media_source_taxonomy = $media_source_taxonomy; } /** * Add the editor term, to make sure it exists. * * @since 1.9.0 */ public function migrate(): void { wp_insert_term( $this->get_term(), $this->media_source_taxonomy->get_taxonomy_slug() ); } /** * Override this method. * * @since 1.9.0 */ abstract protected function get_term(): string; }