-
Notifications
You must be signed in to change notification settings - Fork 6
/
wpsf-framework-demo.php
74 lines (67 loc) · 3.23 KB
/
wpsf-framework-demo.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?php
/*
* Plugin Name: WordPress-Settings-Framework Framework
* Plugin URI: http://wpsf.com/
* Author: WordPress-Settings-Framework
* Author URI: http://varunsridharan.in/
* Version: 040520180511B1
* Description: A Lightweight and easy-to-use WordPress Options Framework
* License: GPLv2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: wpsf-framework
*/
/**
* ------------------------------------------------------------------------------------------------
*
* WordPress-Settings-Framework Framework
* A Lightweight and easy-to-use WordPress Options Framework
*
* ------------------------------------------------------------------------------------------------
*
* Copyright 2015 WordPress-Settings-Framework <info@wpsf.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* ------------------------------------------------------------------------------------------------
*/
/*-------------------------------------------------------------------------------------------------
- This file is part of the WPSF package. -
- This package is Open Source Software. For the full copyright and license -
- information, please view the LICENSE file which was distributed with this -
- source code. -
- -
- @package WPSF -
- @author Varun Sridharan <varunsridharan23@gmail.com> -
-------------------------------------------------------------------------------------------------*/
if ( ! defined( 'ABSPATH' ) ) {
die ();
} // Cannot access pages directly.
require_once plugin_dir_path( __FILE__ ) . '/wpsf-framework.php';
add_action( "wpsf_framework_loaded", 'wpsf_framework_demo', 1 );
add_action( 'wpsf_widgets', 'wpsf_sample_widget' );
function wpsf_sample_widget() {
require_once __DIR__ . '/config/widget.php';
register_widget( 'wpsf_sample_1' );
}
function wpsf_framework_demo() {
require_once( __DIR__ . '/config/wc-metabox.php' );
require_once __DIR__ . '/config/settings.php';
require_once __DIR__ . '/config/wp-customizer.php';
require_once __DIR__ . '/config/metabox.php';
require_once __DIR__ . '/config/quick-edit.php';
require_once __DIR__ . '/config/taxonomy.php';
require_once __DIR__ . '/config/shortcode.php';
require_once __DIR__ . '/config/user-profile.php';
}