WordPress.org

Ready to get started?Download WordPress

Forums

Save to post meta (1 post)

  1. imjscn
    Member
    Posted 3 years ago #

    I have a Class with some functions like this:

    Class MY_Box{
    ......
     function zzz(){
       if (...){
       $this->$box_data= $this->box()->key();
       }
     }
    ......
    }

    Now I want to save the variable $box_data into post meta.
    How can I do it?

    Any tip is greatly appreciated!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags