LLMS_REST_Webhook_Data::get_delete_link()

Retrieve an admin nonce url for deleting an API key.


Return Return

(string)


Top ↑

Source Source

File: libraries/lifterlms-rest/includes/abstracts/class-llms-rest-webhook-data.php

	public function get_delete_link() {

		return add_query_arg(
			array(
				'section'              => 'webhooks',
				'delete-webhook'       => $this->get( 'id' ),
				'delete-webhook-nonce' => wp_create_nonce( 'delete' ),
			),
			LLMS_REST_API()->keys()->get_admin_url()
		);

	}


Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0-beta.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.