PluginProbe
PixTypes / 1.3.5
PixTypes v1.3.5
2.0.2 trunk 1.3.5 1.4.10 1.4.11 1.4.12 1.4.13 1.4.14 1.4.15 1.4.16 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 2.0.0 2.0.1
pixtypes / plugin-config.php

plugin-config.php in PixTypes 1.3.5, at plugin-config.php

83 lines 1.5 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 $options = get_option('pixtypes_settings');
11
12 $display_settings = false;
13
14 if ( isset( $options['display_settings'] ) ){
15 $display_settings = $options['display_settings'];
16 }
17
18 return array
19 (
20 'plugin-name' => 'pixtypes',
21
22 'settings-key' => 'pixtypes_settings',
23
24 'textdomain' => 'pixtypes',
25
26 'template-paths' => array
27 (
28 $basepath.'core/views/form-partials/',
29 $basepath.'views/form-partials/',
30 ),
31
32 'fields' => array
33 (
34 'hiddens'
35 => include 'settings/hiddens'.EXT,
36 'post_types'
37 => include 'settings/post_types'.EXT,
38 'taxonomies'
39 => include 'settings/taxonomies'.EXT,
40 ),
41
42 'processor' => array
43 (
44 // callback signature: (array $input, PixtypesProcessor $processor)
45
46 'preupdate' => array
47 (
48 // callbacks to run before update process
49 // cleanup and validation has been performed on data
50 ),
51 'postupdate' => array
52 (
53 'save_settings'
54 ),
55 ),
56
57 'cleanup' => array
58 (
59 'switch' => array('switch_not_available'),
60 ),
61
62 'checks' => array
63 (
64 'counter' => array('is_numeric', 'not_empty'),
65 ),
66
67 'errors' => array
68 (
69 'not_empty' => __('Invalid Value.', pixtypes::textdomain()),
70 ),
71
72 'callbacks' => array
73 (
74 'save_settings' => 'save_pixtypes_settings'
75 ),
76
77 'display_settings' => $display_settings,
78
79 // shows exception traces on error
80 'debug' => $debug,
81
82 ); # config
83