Using PODS data with save_post

Yes, whenever a post is saved you should see all of the input items in $_POST … if you’re not using something like xdebug to debug with, you could do something like:

echo "<pre>";
var_dump( $_POST );
echo "</pre>";

To test and see what is all included in $_POST … note this is just for testing and is not recommended method of debugging, which I would strongly recommend using something like PHPStorm and xdebug … and in that case all you would need to do is set a breakpoint in your code, and then just look at $_POST in the IDE to see what is available 😛

https://www.jetbrains.com/phpstorm/help/configuring-xdebug.html

add_action( 'save_post_appointment', 'sendsms_save' );
function sendsms_save() {
    echo "<pre>";
    var_dump( $_POST );
    echo "</pre>";
}