at path:
ROOT
/
wp-content
/
plugins
/
whizzy
/
core
/
defaults.php
run:
R
W
Run
callbacks
DIR
2025-08-15 17:54:51
R
W
Run
classes
DIR
2025-08-15 17:54:51
R
W
Run
interfaces
DIR
2025-08-15 17:54:51
R
W
Run
shortcodes
DIR
2025-08-15 17:54:51
R
W
Run
templates
DIR
2025-08-15 17:54:51
R
W
Run
tests
DIR
2025-08-15 17:54:51
R
W
Run
views
DIR
2025-08-15 17:54:51
R
W
Run
.gitattributes
230 By
2025-08-15 17:54:51
R
W
Run
Delete
Rename
.gitignore
605 By
2025-08-15 17:54:51
R
W
Run
Delete
Rename
README.md
993 By
2025-08-15 17:54:51
R
W
Run
Delete
Rename
bootstrap.php
541 By
2025-08-15 17:54:51
R
W
Run
Delete
Rename
core.php
6.24 KB
2025-08-15 17:54:51
R
W
Run
Delete
Rename
defaults.php
930 By
2025-08-15 17:54:51
R
W
Run
Delete
Rename
helper-functions.php
1.72 KB
2025-08-15 17:54:51
R
W
Run
Delete
Rename
error_log
up
📄
defaults.php
Save
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly return array( 'cleanup' => array( 'switch' => array( 'switch_not_available' ), ), 'checks' => array( 'counter' => array( 'is_numeric', 'not_empty' ), ), 'processor' => array( // callback signature: (array $input, WhizzyProcessor $processor) 'preupdate' => array( // callbacks to run before update process // cleanup and validation has been performed on data ), 'postupdate' => array( // callbacks to run post update ), ), 'errors' => array( 'is_numeric' => esc_html__( 'Numberic value required.', 'whizzy' ), 'not_empty' => esc_html__( 'Field is required.', 'whizzy' ), ), 'callbacks' => array( // cleanup callbacks 'switch_not_available' => 'whizzy_cleanup_switch_not_available', // validation callbacks 'is_numeric' => 'whizzy_validate_is_numeric', 'not_empty' => 'whizzy_validate_not_empty', ), ); # config