Add the logo as "generated" meta

This will be attached after we've processed the `$_FILES` object into an upload.
This commit is contained in:
Kelly Dwan 2019-10-09 16:16:12 -04:00
parent 2e1f5ac2b9
commit b3ea42b84d
No known key found for this signature in database
GPG key ID: 8BA5575F3D11575D

View file

@ -69,6 +69,12 @@ function get_pledge_meta_config( $context = '' ) {
'sanitize_callback' => 'sanitize_text_field',
'show_in_rest' => false,
),
'org-logo' => array(
'single' => true,
'sanitize_callback' => 'esc_url_raw',
'show_in_rest' => true,
'php_filter' => FILTER_VALIDATE_URL,
),
'pledge-email-confirmed' => array(
'single' => true,
'sanitize_callback' => 'wp_validate_boolean',