Custom code in php worpdress
-
Hello Everyone,
I am using wprentals theme and i would like modificate a pice of code which is keeping the balance of a room when is booked. This function it triggers an email notification reminding customers that they have a balance to pay. All my clients are paying full amount so this email is never triggered but i want this email to be triggered because i want to send them an email reminder with tripping details. I have contact the theme developers and they told me it needs custom codes so here i am. The thing i want to do is on the below function code te change the parameters so the email it can be sent even when the paid value is equal to the price of the room. I am attaching the code below:
if( !function_exists('wpestate_full_invoice_payment_reminder_function') ):
function wpestate_full_invoice_payment_reminder_function(){
$args = array(
'cache_results' => false,
'update_post_meta_cache' => false,
'update_post_term_cache' => false,
'post_type' => 'wpestate_booking',
'post_status' => 'publish',
'posts_per_page' => -1,
'order' => 'DESC',
'meta_query' => array(array( 'key' => 'booking_status', 'value' => 'confirmed', 'compare' => '=' ), array( 'key' => 'booking_status_full', 'value' => 'confirmed', 'compare' => '!=' ), array( 'key' => 'total_price', 'type' => 'numeric', 'meta_value_num' => '0', 'compare' => '>' ), ) );I think somthing the last array compare should be ”=” and not greater but i am not sure.
I would appreciate if you could assist.
Thank you,
The page I need help with: [log in to see the link]
The topic ‘Custom code in php worpdress’ is closed to new replies.