Last active
June 18, 2022 18:03
-
-
Save hivepress/7117c5caa1907f4b0d4cc2acd60c9969 to your computer and use it in GitHub Desktop.
Hide the budget field from the request forms #hivepress #requests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( | |
'hivepress/v1/models/request/attributes', | |
function( $attributes ) { | |
if ( isset( $attributes['budget'] ) ) { | |
$attributes['budget']['editable'] = false; | |
$attributes['budget']['filterable'] = false; | |
$attributes['budget']['edit_field']['required'] = false; | |
} | |
return $attributes; | |
}, | |
1000 | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment