Skip to content
Snippets Groups Projects

Support link

Merged Krzysztof Dyszczyk requested to merge feature/support_link into master
2 files
+ 15
0
Compare changes
  • Side-by-side
  • Inline

Files

+ 11
0
@@ -30,6 +30,13 @@ abstract class AbstractPlugin implements \WPDesk_Translable {
/** @var string */
protected $settings_url;
/**
* Support URL.
*
* @var string
*/
protected $support_url;
/**
* AbstractPlugin constructor.
*
@@ -130,6 +137,10 @@ abstract class AbstractPlugin implements \WPDesk_Translable {
public function links_filter( $links ) {
$support_link = get_locale() === 'pl_PL' ? 'https://www.wpdesk.pl/support/' : 'https://www.wpdesk.net/support';
if( $this->support_url ) {
$support_link = $this->support_url;
}
$plugin_links = [
'<a href="' . $support_link . '">' . __( 'Support', $this->get_text_domain() ) . '</a>',
];
Loading