Пример #1
1
/**
 * Set the default plugin settings.
 * 
 * @since 1.0.0
 * @return void
 */
function wpsl_set_default_settings()
{
    $settings = get_option('wpsl_settings');
    if (!$settings) {
        update_option('wpsl_settings', wpsl_get_default_settings());
    }
}
Пример #2
1
 /**
  * Setup the plugin settings.
  *
  * @since 2.0.0
  * @return void
  */
 public function plugin_settings()
 {
     global $wpsl_settings, $wpsl_default_settings;
     $wpsl_settings = wpsl_get_settings();
     $wpsl_default_settings = wpsl_get_default_settings();
 }