Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories\Admin
Table::get_action_url
Builds an action URL (ie, to edit or delete a row).
Method of the class: Table{}
No Hooks.
Returns
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'
Table::get_action_url() Table::get action url code WC 10.6.2
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()
);
}