Automator_Notifications::get_sidebar_url()

Get the notification sidebar URL for the page where users can see/read notifications.

Contents


Return Return

(string)


Source Source

File: src/core/admin/notifications/notifications.php

	public function get_sidebar_url() {

		$disabled = false;

		$url = add_query_arg(
			array(
				'page' => 'automator_reports',
				'open' => 'automator_notification_sidebar',
			),
			admin_url( 'admin.php' )
		);

		if ( false !== $disabled ) {
			$url = is_multisite() ? network_admin_url( 'admin.php?page=automator_network' ) : admin_url( 'admin.php?page=automator_settings' );
		}

		return $url;
	}