Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Serge Gusev

    (@serge-gusev)

    Ok, I can do this using $_POST PHP variable. Is it a good way for WP ?

    Moderator bcworkz

    (@bcworkz)

    If the data you need is in $_POST, it’s fine to use it. In some cases editor form data is saved via the REST API and not available even in $_POST. As it’s from your own meta box, you’d have known anyway ?? Be sure to sanitize and validate anything you get from $_POST. You may need to stripslashes() on it as well.

    Thread Starter Serge Gusev

    (@serge-gusev)

    Thank you, @bcworkz

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Full Post data in pre_post_update’ is closed to new replies.