PluginProbe
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar / 3.3.1
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar v3.3.1
3.3.1 3.3.0 3.2.14 3.2.13 3.2.12 3.2.11 3.2.10 3.2.9 3.2.8 3.2.7 trunk 0.2.5.5 0.2.5.6 0.2.5.7 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.2.0 1.2.1 All 156 releases
notificationx / vendor / wpdeveloper / lib-settings / test / basic.php

basic.php in NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar 3.3.1, at vendor/wpdeveloper/lib-settings/test/basic.php

37 lines 882 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 // Instantiate and load Settings.
4 $settings = new Settings(array(
5 "store" => "options",
6 "key" => "settings_test",
7 "format" => "object"
8 ));
9
10 $settings->set( 'make', 'Chevy' );
11 $settings->set( 'model', 'Tahoe' );
12 $settings->set( 'features', array(
13 'ac',
14 'stuff'
15 ));
16
17 $settings->set( 'features', array(
18 'dvd',
19 'sunroof'
20 ));
21
22 $settings->set( 'options', array(
23 "rims" => '24',
24 "towing" => true,
25 "onstar" => 'active'
26 ));
27
28 $settings->set( 'options', array(
29 "gps" => 'standard'
30 ));
31
32 //echo '<br />get all: <pre>' . print_r( $settings->get(), true ) . '</pre>';
33 echo '<br />get make: ' . print_r( $settings->get( 'make' ), true );
34 echo '<br />get options.gps: ' . print_r( $settings->get( 'options.gps' ), true );
35 echo '<br />get features: ' . print_r( $settings->get( 'features' ), true );
36 die( '<pre>get all' . print_r( $settings->get(), true ) . '</pre>' );
37