CPT email notification including only new value custom fields

From your explanation, it seems that we need wp_mail() function and post_updated hook. wp_mail() reference: https://developer.wordpress.org/reference/functions/wp_mail/ post_updated action hook: https://developer.wordpress.org/reference/hooks/post_updated/ <CPT_name> – replace this with your custom post type key. (Untested code – it should give you a good idea of what needs to be done) add_action(‘post_updated’, `send_custom_update`, 10, 3); function send_custom_update($post_ID, $post_after, $post_before) { … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)