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>";
}
Related Posts:
- Check for update vs new post on save_post action
- How to avoid infinite loop in save_post callback
- $update is always true in save_post
- Action hook ‘save_post’ triggered when deleting posts
- get post meta before it is updated (during SAVE_POST)
- save_post action firing before I publish / save the post
- save_post action only when creating a new post
- Check if value has changed on save_post
- Minimum Word Count Before A Post Can Be Made Pending Review
- update_post_meta() not working in save_post
- How do I save each option in a multiple select menu as it’s own meta_key + meta_value pair?
- Update post on save
- Post meta checkbox becomes unchecked occasionally
- Return code from save_post action?
- update_post_meta not working in save_post
- save_post only saves meta data on second save
- Get Post ID with insert/edit link
- How to manage saving custom field from Quick edit and Post Save using save_post action hook without colliding each other?
- Why save_post_$(custom_post_type) is fired even if I am not already saving a post?
- Set the value of custom field when post is published or updated
- pass error to admin_notices on “quick edit”/save_post action
- save_post requiere at least one uploaded file to be published
- Get $_POST & $_REQUEST values before adding/updating post
- How can I create a new user account while creating a new post, and then set that new user as the author of that new post?
- Validate post checking if child term is assigned
- Clear cache on post of one type when something happens to post of other type
- Why not fire the save_post event?
- Compare custom taxonomies of updated post (or new post) [Updated with progress]
- WordPress 4.9.8 doesn’t save if content has style=”
- Reset all transients on post or page save
- Cant’t delete my custom posts
- where does this $post_id come from?
- Update current WP post every 3 minutes [closed]
- Changing new post to “pending” on publish – but “Publish failed” – why?
- update_post_meta not working in foreach
- Save post in another table
- Strange bug on post/page save
- draft_to_pending action doesn’t seem to fire
- What action to use for when a post is saved / published, with a caveat
- Custom wp_editor doesn’t update post_content
- Save custom value to main content of post
- Check for page template on save_post hook
- Access NEW/UPDATED post values in save_post() callback function
- save button grayed out randomly
- Post editor doesn’t save embed media [closed]
- How to get a post meta value and pass that to update_option when a post is created or updated?
- WordPress save meta data : Displaying the word Array when selected
- Save current post using custom save button
- Connection Reset on post/page save
- Meta data not saved on save_post
- Insert/Update DB table when making new post or update older one
- Prevent Page/Post From Being Created based on Pages/Posts per User per Time Unit
- How to debug | Some times the “Save Draft” button seems to spin but does not actually save
- My custom title gets duplicated at every save or post update
- Use save_post to generate file on wordpress
- Detect, if post is saved manually or programmatically in save_post-hook
- Check if new post or update before save_post action
- Why would I get a “Trying to access array offset on value of type bool” warning when using “metadata_exists()” in save_post?
- How do I get a YouTube video thumbnail from the YouTube API?
- How do I POST JSON data with cURL?
- What’s the net::ERR_HTTP2_PROTOCOL_ERROR about?
- JSONDecodeError: Expecting value: line 1 column 1 (char 0)
- curl: (60) SSL certificate problem: unable to get local issuer certificate
- HTTP POST and GET using cURL in Linux [duplicate]
- How do I POST JSON data with cURL?
- curl: (60) SSL certificate problem: unable to get local issuer certificate
- JSONDecodeError: Expecting value: line 1 column 1 (char 0)
- How do I install and use cURL on Windows?
- Is there a way to follow redirects with command line cURL?
- JSONDecodeError: Expecting value: line 1 column 1 (char 0)
- How to fix “SSL certificate problem: self signed certificate in certificate chain” error?
- How to send a header using a HTTP request through a cURL call?
- How to use Python to execute a cURL command?
- What’s the net::ERR_HTTP2_PROTOCOL_ERROR about?
- How can I set the request header for curl?
- How to use Python to execute a cURL command?
- How to define the basic HTTP authentication using cURL correctly?
- How to use the curl command in PowerShell?
- https connection using CURL from command line
- performing HTTP requests with cURL (using PROXY)
- How to define the basic HTTP authentication using cURL correctly?
- Curl command for https ( SSL )
- How to do a PUT request with cURL?
- How to display request headers with command line curl
- How to capture cURL output to a file?
- Using cURL with a username and password?
- PHP + curl, HTTP POST sample code?
- What is the curl error 52 “empty reply from server”?
- How to fix libeay32.dll was not found error
- Can curl make a connection to any TCP ports, not just HTTP/HTTPS?
- cURL to show response headers after submiting a file
- curl: (6) Could not resolve host: google.com; Name or service not known
- Call to undefined function curl_init().?
- How do I get a YouTube video thumbnail from the YouTube API?
- How to use cURL to send Cookies?
- wget/curl large file from google drive
- How do I POST JSON data with cURL?
- CURL ERROR: Recv failure: Connection reset by peer – PHP Curl
- curl: (35) SSL connect error
- cURL error 60: SSL certificate: unable to get local issuer certificate