HEX
Server: Apache
System: Linux eisbus 6.8.12-9-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-9 (2025-03-16T19:18Z) x86_64
User: www-data (33)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/wordpress/wp-content/plugins/contact-form-lite/inc/ecf-entries.php
<?php

if ( ! defined( 'ABSPATH' ) ) exit;

function ecf_create_entries( $name = null, $eml = null, $msg = null, $frmid = null ) {

$new_post = array(
	'post_type' => 'ecfentries',
	'post_title' => $name,
	'post_content' => '',
	'post_status' => 'publish',
);
 
$post_id = wp_insert_post($new_post);
add_post_meta($post_id, 'ecf_sender_name', $name, true);
add_post_meta($post_id, 'ecf_sender_email', $eml, true);
add_post_meta($post_id, 'ecf_sender_msg', $msg, true);
add_post_meta($post_id, 'ecf_formid', $frmid, true);
}

?>