# tier-pricing-table/7.1.5/src/Addons/Tools/AdminUserHooks.php

Tiered Pricing Table for WooCommerce, version 7.1.5. 28 lines.

- Page: https://pluginprobe.com/plugins/tier-pricing-table/7.1.5/code/src/Addons/Tools/AdminUserHooks.php
- Raw: https://pluginprobe.com/plugins/tier-pricing-table/7.1.5/raw/src/Addons/Tools/AdminUserHooks.php
- Modified: 2026-07-31T07:44:26+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/tier-pricing-table/7.1.5/code/src/Addons/Tools/AdminUserHooks.php#L10-L20`.

```php
<?php namespace TierPricingTable\Addons\Tools;

use TierPricingTable\Settings\Settings;

class AdminUserHooks {

	public function __construct() {
		add_action( 'admin_footer-user-new.php', array( $this, 'addRolesManagementLink' ) );
		add_action( 'admin_footer-user-edit.php', array( $this, 'addRolesManagementLink' ) );
	}

	public function addRolesManagementLink() {

		$url  = admin_url( 'admin.php?page=wc-settings&tab=' . Settings::SETTINGS_PAGE . '&section=tools' );
		$text = __( 'Manage Roles', 'tier-pricing-table' );
		?>
		<script>
			jQuery(document).ready(function ($) {
				var $roleSelect = $('#role');
				if ($roleSelect.length) {
					$roleSelect.after('&nbsp;<a href="<?php echo esc_url( $url ); ?>" style="display: inline-block; margin-left: 5px;"><?php echo esc_html( $text ); ?></a>');
				}
			});
		</script>
		<?php
	}
}

```
