Add employee number meta field

This commit is contained in:
Kelly Dwan 2019-10-08 18:00:45 -04:00
parent 985521b4da
commit 1944ab6cf6
No known key found for this signature in database
GPG key ID: 8BA5575F3D11575D

View file

@ -50,6 +50,12 @@ function get_pledge_meta_config( $context = '' ) {
'show_in_rest' => false,
'php_filter' => FILTER_VALIDATE_EMAIL,
),
'org-number-employees' => array(
'single' => true,
'sanitize_callback' => 'absint',
'show_in_rest' => false,
'php_filter' => FILTER_VALIDATE_INT,
),
);
$generated = array(
@ -149,6 +155,7 @@ function render_meta_boxes( $pledge, $box ) {
case 'pledge-email':
require FiveForTheFuture\get_views_path() . 'inputs-pledge-org-email.php';
break;
case 'org-info':
require FiveForTheFuture\get_views_path() . 'inputs-pledge-org-info.php';
break;