WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Features

Marketing::register_pages() public WC 1.0

Registers report pages.

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

Hooks from the method
Return

null. Nothing.

Usage

$Marketing = new Marketing();
$Marketing->register_pages();

Code of Marketing::register_pages() WC 5.3.0

<?php
public function register_pages() {
	$this->register_overview_page();

	$controller = PageController::get_instance();
	$defaults   = [
		'parent'        => 'woocommerce-marketing',
		'existing_page' => false,
	];

	$marketing_pages = apply_filters( 'woocommerce_marketing_menu_items', [] );
	foreach ( $marketing_pages as $marketing_page ) {
		if ( ! is_array( $marketing_page ) ) {
			continue;
		}

		$marketing_page = array_merge( $defaults, $marketing_page );

		if ( $marketing_page['existing_page'] ) {
			$controller->connect_page( $marketing_page );
		} else {
			$controller->register_page( $marketing_page );
		}
	}
}