Term_Mapper::map( int $bc_id )

Summary

Map a BigCommerce term ID to the equivalent WP term ID


Parameters

$bc_id

(int) (Required)


Return

(int)


Source

File: src/BigCommerce/Import/Mappers/Term_Mapper.php

	public function map( $bc_id ) {
		if ( empty( $bc_id ) ) {
			return 0;
		}

		$local = $this->find_existing_term( $bc_id );

		if ( $local ) {
			return $local;
		}

		return 0; // don't import it right now, presume it will be imported on the next importer run
	}

User Contributed Notes

You must log in before being able to contribute a note or feedback.