
You can also be notified a few days before an SSL certificate on one of your sites expires. It will notify you when your site is down (and when it comes back up).

It's written in PHP and distributed as a Laravel package. It's a powerful, easy to configure uptime monitor. There isn't an option to send the email instantly.Today we released our newest package: spatie/laravel-uptime-monitor. (string) (required) How often the event should reoccur. Parameter $recurrance, it can be setup as: Q4) Also, is there a way to check the email instantly instead of waiting hourly for the function to execute?

Same as above, it needs custom PHP codes.

PHP SET EXPIRATION TIME UTIME HOW TO
Q3) Secondly I don't know how to get the current post author inside the function so that the email is sent to him. Or duplicate same problem in a test site, and fill below private detail box with login details and ftp access. If you want trigger other email notification instead of CRED email notification, it needs custom PHP codes, you can Check out our certified partners for it: There you can send the email before specific days. Section "Sending email notifications when posts expire", screenshot: No, Your codes isn't correct, You are going to sending the email depending on the custom date field value of '_cred_post_expiration_time', it is a build-in feature of CRED form, same as I mentioned above in document: No, I don't think it is a good idea that "trigger the notification in posts that are published".īut if you need send the email instantly, please check our document: Q1) I want to trigger the notification in posts that are published You can simply create a post with your CRED form, and check them in your database table wp_postmeta _cred_notification_data, it is an array to store the notification_data _cred_post_expiration_notifications, it is an array to store the email details of expiration_notifications _cred_post_expiration_action, it is an array to store the actions when post is expired. _cred_post_expiration_time, it is for storing the timestamp of expiration date When automatic expiration is enabled for a form a new option is available in the notifications for the CRED form.įor those posts which you created before you enable the option "Automatic Expiration Date" in CRED form, You will manually add below 4 custom fields: Section "Sending email notifications when posts expire" If you want Sending email notifications before posts are expired, please make sure you have followed the steps in our document: I have activated the "Automatic Expiration Date" though so I could try the functionality but it still didn't work. Sorry, I need detail steps to duplicate same problem as you mentioned above: Update_post_meta( $post_id, '_cred_post_expiration_time', strtotime('+180 days', $expiry_time) ) Ĭan you please help me overcome this issue? Update_post_meta( $post_id, '_cred_post_expiration_time', strtotime('+150 days', $expiry_time) ) Update_post_meta( $post_id, '_cred_post_expiration_time', strtotime('+120 days', $expiry_time) ) Update_post_meta( $post_id, '_cred_post_expiration_time', strtotime('+90 days', $expiry_time) ) Update_post_meta( $post_id, '_cred_post_expiration_time', strtotime('+60 days', $expiry_time) ) Update_post_meta( $post_id, '_cred_post_expiration_time', strtotime('+30 days', $expiry_time) ) $expiry_time = get_post_meta( $post_id, '_cred_post_expiration_time', true) Update_post_meta( $post_id, 'wpcf-order-id', $val. $val = get_post_meta( $post_id, 'wpcf-order-id', true) // get the previous value Update_post_meta( $post_id, 'wpcf-subscription-duration', "180 days") Update_post_meta( $post_id, 'wpcf-subscription-duration', "150 days") Update_post_meta( $post_id, 'wpcf-subscription-duration', "120 days") Update_post_meta( $post_id, 'wpcf-subscription-duration', "90 days") Update_post_meta( $post_id, 'wpcf-subscription-duration', "60 days")

Update_post_meta( $post_id, 'wpcf-subscription-duration', "30 days") Update_post_meta( $post_id, 'wpcf-order-id', $order_id) $sub_duration = get_post_meta( $post_id, 'subscription-duration', true) $post_id = $data //Post ID that was created/edited with the form $order_id = $data //WooCommerce Order ID associated to the buying process Insert order id to post and set expiry dateĪdd_action('cred_commerce_after_payment_completed','add_order_id',10,1)
