Skip to content

Commit d4627fd

Browse files
committed
Add WP_Custom_Settings namespace
1 parent 4a2ddcc commit d4627fd

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

example.php

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
* @package wp-custom-settings
66
*/
77

8+
use WP_Custom_Settings\WP_Custom_Settings;
9+
use WP_Custom_Settings\WP_Custom_Settings_Section;
10+
use WP_Custom_Settings\WP_Custom_Settings_Field;
11+
812
/**
913
* An example of adding a custom settings page.
1014
*

wp-custom-settings.php

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
2121
*/
2222

23+
namespace WP_Custom_Settings;
24+
2325
/**
2426
* Manage to add menu page, register setting, settings section, and fields.
2527
*/

0 commit comments

Comments
 (0)