Tribe__Events__Main::addMetaLinks( array $links, string $file )
Add meta links to the Plugins list page.
Contents
Parameters
- $links
-
(array) (Required) The current action links.
- $file
-
(string) (Required) The plugin to see if we are on TEC.
Return
(array) The modified action links array.
Source
File: src/Tribe/Main.php
public function addMetaLinks( $links, $file ) {
if ( $file == $this->plugin_dir . 'the-events-calendar.php' ) {
$anchor = esc_html__( 'Support', 'the-events-calendar' );
$links[] = '<a href="' . esc_url( self::$dotOrgSupportUrl ) . '" target="_blank">' . $anchor . '</a>';
$anchor = esc_html__( 'View All Add-Ons', 'the-events-calendar' );
$link = add_query_arg(
array(
'utm_campaign' => 'in-app',
'utm_medium' => 'plugin-tec',
'utm_source' => 'plugins-manager',
), self::$tecUrl . self::$addOnPath
);
$links[] = '<a href="' . esc_url( $link ) . '" target="_blank">' . $anchor . '</a>';
}
return $links;
}