update_post_meta on multi-dimensional array options

Question

When updating the database, I use update_post_meta($employee->ID, '_email_address', $record->email); and update this result:

object(stdClass)[1295]
  public 'email' => string 'he@fhflondon.co.uk' (length=32)

How does one target an inner array for files such as leadership, profile?

object(stdClass)[1295]
 public 'biography' => string '' (length=0)
 public 'files' => 
    object(stdClass)[1294]
      public 'leadership' => null
      public 'profile' => null
      public 'blog' => null
      public 'thumbnail' => null
0
Sema 1 year 0 Answers 66 views 0

Leave an answer