Wordpress add_meta_box() weirdness

后端 未结 3 860
眼角桃花
眼角桃花 2021-02-08 11:17

The code below is working nearly flawlessly, however my value for page title on one of my pages keeps coming up empty after a few page refreshes... It sticks for awhile, then it

3条回答
  •  渐次进展
    2021-02-08 11:36

    The WordPress Codex has got an function reference for add_meta_box(), with a great example.

    And yes, it uses

    
     if ( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE ) 
        return $post_id;
    

    and I think you've implemented it the right way.

提交回复
热议问题