Single_Edit_Post_Link::get_link()
Returns the link to break-out an Occurrence from the Recurring Event and edit it as a Single Event.
Return
(string) The link to break-out an Occurrence from the Recurring Event and edit it as a Single Event.
Source
File: src/Events_Pro/Custom_Tables/V1/Updates/Post_Links/Single_Edit_Post_Link.php
public function get_link(): string {
return add_query_arg(
[
'post' => $this->occurrence->provisional_id,
'action' => 'edit',
Updates::REQUEST_KEY => Updates::SINGLE,
'nonce' => wp_create_nonce( 'tec_edit_link' )
],
admin_url( 'post.php' )
);
}
Changelog
| Version | Description |
|---|---|
| 6.0.1 | Introduced. |