我的主题中有以下内容functions.php
剧本
function add_to_system( $appointment_id ) {
$name = get_post_meta( $appointment_id, \'_appointment_guest_name\', TRUE );
$email = get_post_meta( $appointment_id, \'_appointment_guest_email\', TRUE );
$telephone = get_post_meta( $appointment_id, \'_cf_meta_value\', TRUE );
mail( "[email protected]","Test Email", $name.$email.$telephone.$appointment_id );
}
add_action( \'booked_new_appointment_created\', \'add_to_system\', 99, 1 );
然而,当我通过预订进行测试时,它只发送
appointment_id
在电子邮件正文中。它不会获取与该ID相关的post元数据。我在这里做错了什么吗?
N、 B.针对此插件:https://codecanyon.net/item/booked-appointments-appointment-booking-for-wordpress/9466968/comments?page=50&filter=all#comment_12081430.