Join our new community forum for support & discussion

Join Now

Home Support Extensions Requests Budget optional script not working

Budget optional script not working

  • Author
    Posts
  • robertv

    Hi ihor,

    We also need to make the budget optional and found this script which we added to the code snippet and even the child functions file. But it doesn’t work.

    https://hivepress.io/support/topic/cannot-make-budget-optional/#post-16396

    Can you please send us a workaround or modified script that will work?

    P.s.: in future updates a check field to disable this and marketplace price would help a lot in the hive settings.

    Regards,
    Robert

    ihor developer

    Thanks for your suggestion, we’ll add some options for managing the build-in fields (at the moment only custom attributes are fully editable via the back-end). I’ll post the solution in case if someone has the same issue:

    add_filter(
    	'hivepress/v1/models/request/fields',
    	function( $fields ) {
    		if ( isset( $fields['budget'] ) ) {
    			$fields['budget']['required'] = false;
    		}
     
    		return $fields;
    	},
    	1000
    );
Viewing 2 posts - 1 through 2 (of 2 total)

New Reply

This forum has been archived and is no longer accepting new posts or replies. Please join our new community forum for support & discussion.