Skip to content

Commit

Permalink
Merge branch 'release/v1.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
sourovroy committed Sep 10, 2020
2 parents c0d3dcc + 142b019 commit 5c3fdc4
Show file tree
Hide file tree
Showing 4 changed files with 307 additions and 123 deletions.
28 changes: 28 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,34 @@ if ( ! $twenty_twelve_license->error ) {
}
```

### Set Custom Deactivation Reasons

First set your deactivation reasons in Appsero dashboard then map them in your plugin/theme using filter hook.

- **id** is the deactivation slug
- **text** is the deactivation title
- **placeholder** will show on textarea field
- **icon** You can set SVG icon with 23x23 size

```php
add_filter( 'appsero_custom_deactivation_reasons', function () {
return [
[
'id' => 'looks-buggy',
'text' => 'Looks buggy',
'placeholder' => 'Can you please tell which feature looks buggy?',
'icon' => '',
],
[
'id' => 'bad-ui',
'text' => 'Bad UI',
'placeholder' => 'Could you tell us a bit more?',
'icon' => '',
],
];
} );
```

## Credits

Created and maintained by [Appsero](https://appsero.com).
4 changes: 2 additions & 2 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Client {
*
* @var string
*/
public $version = '1.1.12';
public $version = '1.2.0';

/**
* Hash identifier of the plugin
Expand Down Expand Up @@ -170,7 +170,7 @@ protected function set_basename_and_slug() {
$this->project_version = $theme->version;
$this->type = 'theme';
}

$this->textdomain = $this->slug;
}

Expand Down
Loading

0 comments on commit 5c3fdc4

Please sign in to comment.