Routes::set_routes( int $channel_id )

Summary

No summary available.

Parameters

$channel_id

(int) (Required)


Return

(void)


Source

File: src/BigCommerce/Taxonomies/Channel/Routes.php

	public function set_routes( $channel_id ) {
		$site_id = $this->get_site_id( $channel_id );
		if ( empty( $site_id ) ) {
			$site_id = $this->create_site( $channel_id );
		}
		if ( empty( $site_id ) ) {
			return;
		}

		$route_list = $this->get_route_list();
		foreach ( $route_list as $route ) {
			$this->update_route( $site_id, $route );
		}

		update_option( 'schema-' . self::class, self::VERSION );
	}


User Contributed Notes

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