Current Path : /storage/v11800/romasitenew/public_html/wp-content/plugins/google-listings-and-ads/src/Menu/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/romasitenew/public_html/wp-content/plugins/google-listings-and-ads/src/Menu/SetupMerchantCenter.php |
<?php
declare( strict_types=1 );
namespace Automattic\WooCommerce\GoogleListingsAndAds\Menu;
use Automattic\WooCommerce\GoogleListingsAndAds\Infrastructure\Registerable;
use Automattic\WooCommerce\GoogleListingsAndAds\Infrastructure\Service;
/**
* Class SetupMerchantCenter
*
* @package Automattic\WooCommerce\GoogleListingsAndAds\Menu
*/
class SetupMerchantCenter implements Service, Registerable {
/**
* Register a service.
*/
public function register(): void {
add_action(
'admin_menu',
function () {
wc_admin_register_page(
[
'title' => __( 'MC Setup Wizard', 'google-listings-and-ads' ),
'parent' => '',
'path' => '/google/setup-mc',
'id' => 'google-setup-mc',
]
);
}
);
}
}