cord_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' ), 'url' => $page_url, 'icon_url' => isset( $settings['discord_avatar_url'] ) ? $settings['discord_avatar_url'] : null, ], 'url' => $page_url, 'color' => $color, ]; if ( ! empty( $settings['discord_form_data'] ) && 'yes' === $settings['discord_form_data'] ) { // prepare Form Data $raw_fields = $record->get( 'fields' ); $fields = []; foreach ( $raw_fields as $id => $field ) { $fields[] = [ 'name' => $id, 'value' => $field['value'], 'inline' => false, ]; } $embeds['fields'] = array_values( $fields ); } if ( ! empty( $settings['discord_ts'] ) && 'yes' === $settings['discord_ts'] ) { $embeds['timestamp'] = gmdate( \DateTime::ISO8601 ); $embeds['footer'] = [ 'text' => sprintf( /* translators: %s: Elementor. */ esc_html__( 'Powered by %s', 'elementor-pro' ), 'Elementor' ), 'icon_url' => is_ssl() ? ELEMENTOR_ASSETS_URL . 'images/logo-icon.png' : null, ]; } $webhook_data = [ 'embeds' => array_values( [ $embeds ] ), ]; $webhook_data = apply_filters( 'elementor_pro/forms/discord/webhook_args', $webhook_data ); $response = wp_remote_post( $settings['discord_webhook'], [ 'body' => wp_json_encode( $webhook_data ), 'headers' => [ 'Content-Type' => 'application/json; charset=utf-8' ], ]); if ( 204 !== (int) wp_remote_retrieve_response_code( $response ) ) { throw new \Exception( 'Webhook error.' ); } } }
Fatal error: Uncaught Error: Class "ElementorPro\Modules\Forms\Actions\Discord" not found in /htdocs/wp-content/plugins/elementor-pro/modules/forms/registrars/form-actions-registrar.php:48 Stack trace: #0 /htdocs/wp-includes/class-wp-hook.php(341): ElementorPro\Modules\Forms\Registrars\Form_Actions_Registrar->ElementorPro\Modules\Forms\Registrars\{closure}(Object(ElementorPro\Modules\Forms\Registrars\Form_Actions_Registrar)) #1 /htdocs/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array) #2 /htdocs/wp-includes/plugin.php(522): WP_Hook->do_action(Array) #3 /htdocs/wp-content/plugins/elementor-pro/modules/forms/registrars/form-actions-registrar.php(74): do_action('elementor_pro/f...', Object(ElementorPro\Modules\Forms\Registrars\Form_Actions_Registrar)) #4 /htdocs/wp-content/plugins/elementor-pro/modules/forms/registrars/form-actions-registrar.php(26): ElementorPro\Modules\Forms\Registrars\Form_Actions_Registrar->init() #5 /htdocs/wp-content/plugins/elementor-pro/modules/forms/module.php(181): ElementorPro\Modules\Forms\Registrars\Form_Actions_Registrar->__construct() #6 /htdocs/wp-content/plugins/elementor/core/base/module.php(85): ElementorPro\Modules\Forms\Module->__construct() #7 /htdocs/wp-content/plugins/elementor-pro/core/modules-manager.php(89): Elementor\Core\Base\Module::instance() #8 /htdocs/wp-content/plugins/elementor-pro/plugin.php(369): ElementorPro\Core\Modules_Manager->__construct() #9 /htdocs/wp-includes/class-wp-hook.php(341): ElementorPro\Plugin->on_elementor_init('') #10 /htdocs/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters('', Array) #11 /htdocs/wp-includes/plugin.php(522): WP_Hook->do_action(Array) #12 /htdocs/wp-content/plugins/elementor/includes/plugin.php(684): do_action('elementor/init') #13 /htdocs/wp-includes/class-wp-hook.php(341): Elementor\Plugin->init('') #14 /htdocs/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array) #15 /htdocs/wp-includes/plugin.php(522): WP_Hook->do_action(Array) #16 /htdocs/wp-settings.php(771): do_action('init') #17 /htdocs/wp-config.php(98): require_once('/htdocs/wp-sett...') #18 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #19 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #20 /htdocs/index.php(17): require('/htdocs/wp-blog...') #21 {main} thrown in /htdocs/wp-content/plugins/elementor-pro/modules/forms/registrars/form-actions-registrar.php on line 48