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{}

Хуков нет.

Возвращает

Строку.

Использование

$Table = new Table();
$Table->get_action_url( $action, $id, $nonce_action ): string;
$action(строка) (обязательный)
The action to be created.
$id(int) (обязательный)
The ID that is the subject of the action.
$nonce_action(строка)
Action used to add a nonce to the URL.
По умолчанию: 'modify_approved_directories'

Код Table::get_action_url() WC 8.7.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()
	);
}