WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\Assets

AssetDataRegistry::register_page_id() public WC 1.0

Adds a page permalink to the data registry.

{} It's a method of the class: AssetDataRegistry{}

No Hooks.

Return

null. Nothing.

Usage

$AssetDataRegistry = new AssetDataRegistry();
$AssetDataRegistry->register_page_id( $page_id );
$page_id(int) (required)
Page ID to add to the registry.

Code of AssetDataRegistry::register_page_id() WC 5.7.1

public function register_page_id( $page_id ) {
	$permalink = $page_id ? get_permalink( $page_id ) : false;

	if ( $permalink ) {
		$this->data[ 'page-' . $page_id ] = $permalink;
	}
}