Beispiel #1
0
 /**
  * Update settings
  */
 function save_post_settings($settings_array)
 {
     $old_settings = pl_get_all_settings();
     $new_settings = wp_parse_args($this->sanitize_post_options($settings_array), $old_settings);
     pl_update_all_settings($new_settings);
 }
Beispiel #2
0
 function pl_set_default_settings()
 {
     $settings = pl_get_all_settings();
     if (!$settings) {
         $settings = pl_settings_default();
     }
     pl_update_all_settings($settings);
     return $settings;
 }