LLMS_Admin_Table::get_post_link( int $post_id, string $text = '' )
Get the HTML for a WP Post Link.
Parameters Parameters
- $post_id
-
(int) (Required) WP Post ID
- $text
-
(string) (Optional) text to display within the anchor, if none supplied $post_id if used
Default value: ''
Return Return
(string)
Source Source
File: includes/abstracts/abstract.llms.admin.table.php
public function get_post_link( $post_id, $text = '' ) { if ( ! $text ) { $text = $post_id; } return '<a href="' . esc_url( get_edit_post_link( $post_id ) ) . '">' . $text . '</a>'; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.2.0 | Introduced. |