Page::get_link( array $args = array() )
Gets the link to the Calendar Manger page.
Contents
Parameters
- $args
-
(array) (Optional) Other args to be merged into the link.
Default value: array()
Return
(string) Link not escaped for the calendar manager.
Source
File: src/Tribe/Admin/Manager/Page.php
public function get_link( array $args = [] ) {
$url = admin_url( 'edit.php' );
$args = array_merge( $args, [
'post_type' => TEC::POSTTYPE,
'page' => $this->get_page_slug(),
] );
$url = add_query_arg( $args, $url );
return $url;
}
Changelog
| Version | Description |
|---|---|
| 5.9.0 | Introduced. |