| 1 |
<?php |
| 2 |
|
| 3 |
namespace HelloPlus\Modules\Admin\Components; |
| 4 |
|
| 5 |
if ( ! defined( 'ABSPATH' ) ) { |
| 6 |
exit; // Exit if accessed directly. |
| 7 |
} |
| 8 |
|
| 9 |
class Admin_Controller { |
| 10 |
|
| 11 |
public function plugin_row_meta( $plugin_meta, $plugin_file ) { |
| 12 |
|
| 13 |
if ( HELLOPLUS_PLUGIN_BASE === $plugin_file ) { |
| 14 |
$row_meta = [ |
| 15 |
'changelog' => '<a href="#" id="hello-plus-whats-new-link" aria-label="' . esc_attr( esc_html__( 'Changelog', 'hello-plus' ) ) . '" >' . esc_html__( 'Changelog', 'hello-plus' ) . '</a><div id="hello-plus-whats-new"></div>', |
| 16 |
]; |
| 17 |
|
| 18 |
$plugin_meta = array_merge( $plugin_meta, $row_meta ); |
| 19 |
} |
| 20 |
|
| 21 |
return $plugin_meta; |
| 22 |
} |
| 23 |
|
| 24 |
public function __construct() { |
| 25 |
add_filter( 'plugin_row_meta', [ $this, 'plugin_row_meta' ], 10, 2 ); |
| 26 |
} |
| 27 |
} |
| 28 |
|