REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.58 KB
Close
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/metform/core/integrations/slack.php
Text
Base64
<?php namespace MetForm\Core\Integrations; defined( 'ABSPATH' ) || exit; class Slack { public function call_webhook( $form_data, $settings ){ $msg = []; $data = [ "text" => "New form submitted.", "pretext" => "from slack Webhook", "color" => "#36a64f", "fields" => [ [ "title" => "First Name", "value" => isset($form_data["mf-listing-fname"]) ? $form_data["mf-listing-fname"] : '', ], [ "title" => "Last Name", "value" => isset($form_data["mf-listing-lname"]) ? $form_data["mf-listing-lname"] : '', ], [ "title" => "Email", "value" => isset($form_data[$settings['email_name']]) ? $form_data[$settings['email_name']] : '', ], ], ]; $status = wp_remote_post( $settings['url'], array( 'method' => 'POST', 'timeout' => 30, 'redirection' => 5, 'httpversion' => '1.0', 'blocking' => true, 'headers' => array(), 'body' => json_encode($data), 'cookies' => array() ) ); if(is_wp_error($status)){ $msg['status'] = 0; $msg['msg'] = "Something went wrong : ".$status->get_error_message(); }else{ $msg['status'] = 1; $msg['msg'] = esc_html__('Your data inserted on slack.', 'metform'); } return $msg; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 3 × Files: 6
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
crm
DIR
-
drwxr-xr-x
2026-05-04 02:33:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
onboard
DIR
-
drwxr-xr-x
2026-05-04 02:33:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
provider
DIR
-
drwxr-xr-x
2026-05-04 02:33:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
emailkit-builder.php
1.78 KB
lrw-r--r--
2025-06-26 10:29:32
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
google-recaptcha.php
2.53 KB
lrw-r--r--
2023-01-08 15:19:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
mail-chimp.php
2.00 KB
lrw-r--r--
2021-07-13 10:59:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Mail_Adapter.php
175 B
lrw-r--r--
2023-01-08 15:19:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Mail_Adapter_Contract.php
147 B
lrw-r--r--
2021-07-13 10:59:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
slack.php
1.58 KB
lrw-r--r--
2021-07-13 10:59:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).