mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-02 01:01:18 +03:00
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:
parent
2e1f5ac2b9
commit
b3ea42b84d
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue