Beispiel #1
0
 /**
  * helper function that prefixes the options with current theme option slug.
  */
 function prepare_option($opt)
 {
     return sprintf('%s[%s]', pl_base_settings_slug(), $opt);
 }
Beispiel #2
0
 function pl_update_all_settings($settings, $editID = false)
 {
     if ($editID !== false) {
         update_post_meta($editID, pl_base_settings_slug(), $settings);
     } else {
         update_option(pl_base_settings_slug(), $settings);
     }
 }