| @@ -34,8 +34,10 @@ | ||
| 34 | 34 | } catch ( Exception $e ) { |
| 35 | 35 | unset( $e ); |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | + add_filter( 'plugin_action_links_' . TEMPLATELY_PLUGIN_BASENAME, [$this, 'handleActionLinks'], 10, 2 ); | |
| 39 | + | |
| 38 | 40 | // Remove OLD notice from 1.0.0 (if other WPDeveloper plugin has notice) |
| 39 | 41 | NoticeRemover::get_instance( '1.0.0' ); |
| 40 | 42 | } |
| 41 | 43 | |
| @@ -369,6 +371,23 @@ | ||
| 369 | 371 | } |
| 370 | 372 | |
| 371 | 373 | public function header() { |
| 372 | 374 | Helper::views( 'header' ); |
| 375 | + } | |
| 376 | + | |
| 377 | + /** | |
| 378 | + * Handle links displayed below the plugin name in the WordPress Installed Plugins page. | |
| 379 | + * | |
| 380 | + * @return array | |
| 381 | + * @since 3.1.2 | |
| 382 | + * @static | |
| 383 | + * | |
| 384 | + */ | |
| 385 | + public static function handleActionLinks($links, $file) | |
| 386 | + { | |
| 387 | + $settingsLink = '<a href="' . admin_url('admin.php?page=templately') . '" aria-label="' . __('Open settings page', | |
| 388 | + 'templately') . '">' . __('Templates Library', 'templately') . '</a>'; | |
| 389 | + | |
| 390 | + $links[] = $settingsLink; | |
| 391 | + return $links; | |
| 373 | 392 | } |
| 374 | 393 | } |