LLMS_Admin_Post_Table_Certificates::add_actions( array $actions, WP_Post $post )
Add post row actions.
Parameters Parameters
- $actions
-
(array) (Required) Array of post row actions.
- $post
-
(WP_Post) (Required) Post object for the row.
Return Return
(array)
Source Source
File: includes/admin/post-types/post-tables/class-llms-admin-post-table-certificates.php
71 72 73 74 75 76 77 78 79 80 81 82 83 | public function add_actions( $actions , $post ) { $cert = llms_get_certificate( $post , true ); if ( 1 === $cert ->get_template_version() ) { $url = esc_url( add_query_arg( self::MIGRATE_ACTION, 1, get_edit_post_link( $post ) ) ); $actions [ self::MIGRATE_ACTION ] = '<a href="' . $url . '">' . __( 'Migrate legacy certificate' , 'lifterlms' ) . '</a>' ; } return $actions ; } |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
6.0.0 | Introduced. |