Warning: Array to string conversion in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 825
Automator_Notifications::get_view_url( $scroll_to,  $page,  $tab = '' )

Get the 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_view_url( $scroll_to, $page, $tab = '' ) {
		$disabled = false;
		$url = add_query_arg(
			array(
				'page'                => $page,
				'automator-scroll'    => $scroll_to,
				'automator-highlight' => $scroll_to,
			),
			admin_url( 'admin.php' )
		);
		if ( ! empty( $tab ) ) {
			$url .= '#/' . $tab;
		}
		if ( false !== $disabled ) {
			$url = is_multisite() ? network_admin_url( 'admin.php?page=automator_network' ) : admin_url( 'admin.php?page=automator_settings' );
		}
		return $url;
	}