Thread Starter
sdio8
(@sdiong8)
Thanks Ivole,
I just remember I’ve intentionally blocked all unauthenticated REST API access (for security & peace of mind obviously).
It seems a plugin could first authenticate itself, thus enabling it to access back to the server via REST API etc. Check out: https://github.com/WordPress/WordPress/blob/587da39a9e0eaea37e5f45323be0ede19d72f974/wp-includes/rest-api.php#L733-L791
Can this be included in your plugin?
I noticed the reservation emails stopped working once I add in the wp_mail_from custom filter. ie.
function custom_mail_from ($email ){
return ‘myemail@mail.com’;
}
add_filter( ‘wp_mail_from’, ‘custom_mail_from’ );
This is required at my end, any idea how to make them work together?