Skip to content

Commit ee21e4a

Browse files
add additional links to plugin dashboard
1 parent ed69112 commit ee21e4a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

classes/Visualizer/Module/Admin.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public function __construct( Visualizer_Plugin $plugin ) {
5858
$this->_addAction( 'admin_menu', 'registerAdminMenu' );
5959
$this->_addFilter( 'media_view_strings', 'setupMediaViewStrings' );
6060
$this->_addFilter( 'plugin_action_links', 'getPluginActionLinks', 10, 2 );
61+
$this->_addFilter( 'plugin_row_meta', 'getPluginMetaLinks', 10, 2 );
6162
$this->_addFilter( 'visualizer_logger_data', 'getLoggerData' );
6263
$this->_addFilter( 'visualizer_get_chart_counts', 'getChartCountsByTypeAndMeta' );
6364
$this->_addFilter( 'visualizer_feedback_review_trigger', 'feedbackReviewTrigger' );
@@ -806,12 +807,12 @@ public function getPluginMetaLinks( $plugin_meta, $plugin_file ) {
806807
if ( $plugin_file === plugin_basename( VISUALIZER_BASEFILE ) ) {
807808
// knowledge base link
808809
$plugin_meta[] = sprintf(
809-
'<a href="https://github.com/codeinwp/visualizer/wiki" target="_blank">%s</a>',
810+
'<a href="https://docs.themeisle.com/category/657-visualizer" target="_blank">%s</a>',
810811
esc_html__( 'Knowledge Base', 'visualizer' )
811812
);
812813
// flattr link
813814
$plugin_meta[] = sprintf(
814-
'<a style="color:red" href="https://themeisle.com/plugins/visualizer-charts-and-graphs-pro-addon/" target="_blank">%s</a>',
815+
'<a style="color:red" href="' . Visualizer_Plugin::PRO_TEASER_URL . '" target="_blank">%s</a>',
815816
esc_html__( 'Pro Addon', 'visualizer' )
816817
);
817818
}

0 commit comments

Comments
 (0)