Skip to main content
2 of 2
added 160 characters in body
kaiser
  • 50.8k
  • 27
  • 150
  • 244

wp_options table value

I am trying to understand a wordpress behaviour. When I add a tag in the admin panel mysql does a sequence of queries. Essentially:

  1. update wp_terms

  2. update wp_term_taxonomy and

  3. udate wp_options with a query of this kind

     INSERT INTO `wp_options` (`option_name`, `option_value`, `autoload`) 
         VALUES (
             'project_location_children', 
             'a:7:{i:22;a:1:{i:0;i:23;}i:23;a:1:{i:0;i:24;}i:25;a:2:{i:0;i:26;i:1;i:32;}i:26;a:2:{i:0;i:27;i:1;i:31;}i:28;a:1:{i:0;i:29;}i:29;a:1:{i:0;i:30;}i:32;a:1:{i:0;i:33;}}', 
             'yes'
         ) 
         ON DUPLICATE KEY UPDATE 
             `option_name` = VALUES(`option_name`), 
             `option_value` = VALUES(`option_value`), 
             `autoload` = VALUES(`autoload`)
    

Who can explain me the meaning of this string

a:7:{i:22;a:1:{i:0;i:23;}i:23;a:1:{i:0;i:24;}i:25;a:2:{i:0;i:26;i:1;i:32;}i:26;a:2:{i:0;i:27;i:1;i:31;}i:28;a:1:{i:0;i:29;}i:29;a:1:{i:0;i:30;}i:32;a:1:{i:0;i:33;}}

and why there is such thing beyond wp_term and wp_term_taxonomy update?

Thanx

emanuele
  • 296
  • 1
  • 3
  • 12