PluginProbe
Customify / 1.5.5
Customify v1.5.5
2.10.9 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.7.1 1.3.0 1.3.1 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.6.0 1.6.0.1 1.6.5 1.7.0 1.7.1 All 77 releases
customify / plugin-config.php

plugin-config.php in Customify 1.5.5, at plugin-config.php

63 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php defined( 'ABSPATH' ) or die;
2
3 $basepath = dirname( __FILE__ ) . DIRECTORY_SEPARATOR;
4
5 $debug = false;
6 if ( isset( $_GET['debug'] ) && $_GET['debug'] == 'true' ) {
7 $debug = true;
8 }
9
10 $debug = true;
11
12 $customify_config = require $basepath . 'customify_config.php';
13
14 return array(
15 'plugin-name' => 'pixcustomify',
16 'settings-key' => 'pixcustomify_settings',
17 'textdomain' => 'customify',
18 'template-paths' => array(
19 $basepath . 'core/views/form-partials/',
20 $basepath . 'views/form-partials/',
21 ),
22 'fields' => array(
23 'hiddens' => include 'settings/hiddens' . EXT,
24 'general' => include 'settings/general' . EXT,
25 'output' => include 'settings/output' . EXT,
26 'typography' => include 'settings/typography' . EXT,
27 'css_editor' => include 'settings/css_editor' . EXT,
28 'tools' => include 'settings/tools' . EXT,
29 ),
30 'processor' => array(
31 // callback signature: (array $input, customifyProcessor $processor)
32 'preupdate' => array(
33 // callbacks to run before update process
34 // cleanup and validation has been performed on data
35 ),
36 // 'postupdate' => array(
37 // 'save_settings'
38 // ),
39 ),
40 'cleanup' => array(
41 'switch' => array( 'switch_not_available' ),
42 ),
43 'checks' => array(
44 'counter' => array( 'is_numeric', 'not_empty' ),
45 ),
46 'errors' => array(
47 'not_empty' => __( 'Invalid Value.', 'customify' ),
48 ),
49 // 'callbacks' => array(
50 // 'save_settings' => 'save_customizer_plugin_settings'
51 // ),
52 // shows exception traces on error
53 'debug' => $debug,
54
55 /**
56 * DEFAULTS - The default plugin options
57 */
58 'default_options' => array(
59
60 )
61
62 ); # config
63