LLMS_Abstract_Integration::plugin_action_links( string[] $links, string $file, array $data, string $context )
Add plugin settings Action Links
Parameters Parameters
- $links
-
(string[]) (Required) Existing action links.
- $file
-
(string) (Required) Path to the plugin file, relative to the plugin directory.
- $data
-
(array) (Required) Plugin data.
- $context
-
(string) (Required) Plugin's content (eg: active, invactive, etc...).
Return Return
(string[])
Source Source
File: includes/abstracts/llms.abstract.integration.php
312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 | public function plugin_action_links( $links , $file , $data , $context ) { $url = add_query_arg( array ( 'page' => 'llms-settings' , 'tab' => 'integrations' , 'section' => $this ->id, ), admin_url( 'admin.php' ) ); $links [] = '<a href="' . esc_url( $url ) . '">' . _x( 'Settings' , 'Link text for integration plugin settings' , 'lifterlms' ) . '</a>' ; return $links ; } |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.21.0 | Don't check $context . If the plugin isn't active this won't run anyway so it's a useless check. |
3.37.9 | Introduced. |