Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories\Admin

Table::get_action_url()publicWC 1.0

Builds an action URL (ie, to edit or delete a row).

Метод класса: Table{}

No Hooks.

Return

String.

Usage

$Table = new Table();
$Table->get_action_url( $action, $id, $nonce_action ): string;
$action(string) (required)
The action to be created.
$id(int) (required)
The ID that is the subject of the action.
$nonce_action(string)
Action used to add a nonce to the URL.
Default: 'modify_approved_directories'

Code of Table::get_action_url() WC 7.1.0

public function get_action_url( string $action, int $id, string $nonce_action = 'modify_approved_directories' ): string {
	return add_query_arg(
		array(
			'check'  => wp_create_nonce( $nonce_action ),
			'action' => $action,
			'url'    => $id,
		),
		$this->get_base_url()
	);
}