Routes::update_site_home()

Summary

No summary available.

Return

(void)


Source

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

	public function update_site_home() {
		foreach ( $this->get_active_channel_ids() as $channel_id ) {
			$body = new Site( [
				'url' => untrailingslashit( home_url() ),
			] );
			try {
				$site_id = $this->get_site_id( $channel_id );
				$this->sites->putSite( $site_id, $body );
			} catch ( ApiException $e ) {
				do_action( 'bigcommerce/update_site_home/error' );
			}
		}
	}

User Contributed Notes

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