| Server IP : 198.38.94.13 / Your IP : 216.73.217.33 Web Server : Apache System : Linux d4744.dxb1.stableserver.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 User : revivere ( 1140) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/revivere/www/wp-content/plugins/wordpress-whatsapp-support/includes/ |
Upload File : |
<?php
// Preventing to direct access
defined( 'ABSPATH' ) OR die( 'Direct access not acceptable!' );
class WWS_Public_Ajax {
public function __construct() {
add_action( 'wp_ajax_wws_view_multi_person_form', array( $this, 'view_multi_person_form' ) );
add_action( 'wp_ajax_nopriv_wws_view_multi_person_form', array( $this, 'view_multi_person_form' ) );
}
public function view_multi_person_form() {
$support_person = new WWS_Support_Person( $_POST['support_person_id'] );
$post_id = sanitize_text_field( $_POST['post_id'] );
$pre_message = str_replace(
array(
'{title}',
'{url}',
'{br}',
),
array(
get_the_title( $post_id ),
get_permalink( $post_id ),
'%0A',
),
$support_person->get_pre_message()
);
require_once WWS_PLUGIN_PATH . 'templates/wws-template-6-form.php';
wp_die();
}
}
$wws_public_ajax = new WWS_Public_Ajax;