Skip to content
Snippets Groups Projects
Commit c86df349 authored by Piotr Po's avatar Piotr Po
Browse files

Merge branch 'feature/support_link' into 'master'

Support link

See merge request !22
parents 455dd537 d1c9beef
No related branches found
Tags 1.3.3
1 merge request!22Support link
Pipeline #8229 failed with stages
in 4 minutes and 35 seconds
## [1.3.3] - 2019-09-24
### Added
- Support URL
## [1.3.2] - 2019-09-18
### Fixed
- Forgotten classes
......
......@@ -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>',
];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment