• Plans & Pricing
  • Log in
  • Get started
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress 
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Get started
  • Sign up
  • Log in
About
  • Plans & Pricing
Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress  
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Jetpack App
  • Learn more
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Search
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Forums / Working with post meta on post save/update

Working with post meta on post save/update

  • Unknown's avatar
    aryanduntley · Member · Nov 25, 2020 at 1:45 am
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    I don’t know why it’s so difficult to get and work with the post meta on post save. In the save_post filters, the post meta is not always available in the $_POST or $_REQUEST object, and the post meta from the database is not always updated by the time the hook is called.

    The $postarr object should really be sent along with the save/update post action hooks so that ALL of the sent data can be manipulated after save. At the very least, the post meta.

    I have never understood why I have to test a thousand different hacks just to get the post meta on save post to work with. And why when one works for some site, for some reason, it doesn’t work on others.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar
    ryrhino00 · Member · Nov 25, 2020 at 2:52 am
    • Copy link Copy link

    Hi,

    This forum is for sites hosted with WordPress .com

    Your site is using hosting with WordPress .org
    software.

    Your site hosting information can be seen at this link.

    https://gwhois.org/aryanduntley.com+dns

    Please use the wordpress.org forum for help.

    You will need to create an account there to be able to use that forum.

    https://wordpress.org/support/forums/

    If you want to know the differences between .com and .org please read this document.

    https://wordpress.com/com-vs-org/

    Your hosting provider’s support may also be able to help.

  • Unknown's avatar
    aryanduntley · Member · Nov 25, 2020 at 3:21 am
    • Copy link Copy link

    I them mixed up all the time. My apologies.

  • Unknown's avatar
    ryrhino00 · Member · Nov 25, 2020 at 3:55 am
    • Copy link Copy link

    No worries

  • The topic ‘Working with post meta on post save/update’ is closed to new replies.

Tags

  • save post post meta savepost postmeta save_post post_meta

About this topic

  • In: Support
  • 2 participants
  • 3 replies
  • Last activity 5 years
  • Latest reply from aryanduntley

Couldn't find what you needed?

Contact us

Contact us

Get answers from our AI assistant, with access to 24/7 expert human support on paid plans.

Browse our guides

Browse our guides

Find step-by-step solutions to common questions in our comprehensive guides.

WordPress.com

Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Professional Email
  • Website Design Services
  • WordPress Studio
  • Enterprise WordPress
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • WordPress.com Blog
  • Business Name Generator
  • Logo Maker
  • WordPress.com Reader
  • Accessibility
  • Remove Subscriptions
Help
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
  • Developer Resources
Company
  • About
  • Press
  • Terms of Service
  • Privacy Policy
  • Do Not Sell or Share My Personal Information
  • Privacy Notice for California Users
DeutschEspañolFrançaisBahasa IndonesiaItalianoNederlandsPortuguês do BrasilSvenskaTürkçeРусскийالعربيةעִבְרִית日本語한국어简体中文繁體中文English

Mobile Apps

  • Download on the App Store
  • Get it on Google Play

Social Media

  • WordPress.com on Facebook
  • WordPress.com on X (Twitter)
  • WordPress.com on Instagram
  • WordPress.com on YouTube

Automattic

Automattic
Work With Us
    • WordPress.com Forums
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • Manage subscriptions