Orders::get_tickets_report_link( WP_Post $post )
Returns the link to the “Orders” report for this post.
Contents
Parameters
- $post
-
(WP_Post) (Required)
Return
(string) The absolute URL.
Source
File: src/Tickets/Commerce/Reports/Orders.php
public static function get_tickets_report_link( $post ) {
$url = add_query_arg(
[
'post_type' => $post->post_type,
'page' => static::$page_slug,
'post_id' => $post->ID,
],
admin_url( 'edit.php' )
);
return $url;
}
Changelog
| Version | Description |
|---|---|
| 5.2.0 | Introduced. |