fix(email): complete mail settings and templates
This commit is contained in:
@@ -77,6 +77,7 @@ class Restriction {
|
||||
|
||||
// Update user meta for quick lookup
|
||||
$this->sync_user_restriction_meta($user_id);
|
||||
do_action('aksrt_user_restriction_changed', $user_id, $type, 'applied', (string) $data['reason']);
|
||||
|
||||
return ['success' => true, 'id' => $wpdb->insert_id];
|
||||
}
|
||||
@@ -92,6 +93,7 @@ class Restriction {
|
||||
$result = $wpdb->delete($this->table(), ['id' => $restriction_id]);
|
||||
if ($result) {
|
||||
$this->sync_user_restriction_meta((int) $restriction['user_id']);
|
||||
do_action('aksrt_user_restriction_changed', (int) $restriction['user_id'], (string) ($restriction['type'] ?? ''), 'removed', '');
|
||||
}
|
||||
return (bool) $result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user