mirror of
https://github.com/proelements/proelements.git
synced 2026-05-05 17:15:58 +00:00
v4.0.4
This commit is contained in:
@@ -25,7 +25,7 @@ class Activity_Log extends Action_Base {
|
||||
public function on_export( $element ) {}
|
||||
|
||||
public function aal_init_roles( $roles ) {
|
||||
$roles['manage_options'][] = 'Elementor Forms';
|
||||
$roles['manage_options'][] = 'Forms';
|
||||
|
||||
return $roles;
|
||||
}
|
||||
@@ -34,7 +34,7 @@ class Activity_Log extends Action_Base {
|
||||
aal_insert_log(
|
||||
[
|
||||
'action' => 'New Record',
|
||||
'object_type' => 'Elementor Forms',
|
||||
'object_type' => 'Forms',
|
||||
'object_id' => $record->get_form_settings( 'id' ),
|
||||
'object_name' => $record->get_form_settings( 'form_name' ),
|
||||
]
|
||||
|
||||
@@ -169,7 +169,7 @@ class Discord extends Action_Base {
|
||||
'title' => isset( $settings['discord_title'] ) ? $settings['discord_title'] : esc_html__( 'A new Submission', 'elementor-pro' ),
|
||||
'description' => isset( $settings['discord_content'] ) ? $settings['discord_content'] : esc_html__( 'A new Form Submission has been received', 'elementor-pro' ),
|
||||
'author' => [
|
||||
'name' => isset( $settings['discord_username'] ) ? $settings['discord_username'] : esc_html__( 'Elementor Forms', 'elementor-pro' ),
|
||||
'name' => isset( $settings['discord_username'] ) ? $settings['discord_username'] : esc_html__( 'Forms', 'elementor-pro' ),
|
||||
'url' => $page_url,
|
||||
'icon_url' => isset( $settings['discord_avatar_url'] ) ? $settings['discord_avatar_url'] : null,
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user