Browse: Home / Classes / Learndash_Admin_Post_Edit /

Learndash_Admin_Post_Edit::add_dashboard_tab_in_edit_post_link

Learndash_Admin_Post_Edit::add_dashboard_tab_in_edit_post_link( string $link,  int $post_id,  string $context )

Filters the edit post link function to add the Dashboard tab when clicking on the Post title in the Post list.


Description #


Parameters #

$link

(string) (Required) The edit post link.

$post_id

(int) (Required) Post ID.

$context

(string) (Required) The context. We removed the PHP type because MemberPress called get_edit_post_link() function with a $context parameter = NULL, and our customers needed a quick fix.


Return #

(string)


Source #

File: includes/admin/class-learndash-admin-posts-edit.php


Changelog #

Changelog
Version Description
4.9.0 Introduced.