Contents

BBP_Converter_Base::callback_negative( $field )

Description

Source

File: bp-forums/admin/converter.php

	protected function callback_negative( $field ) {
		if ( $field < 0 ) {
			return 0;
		} else {
			return $field;
		}
	}

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.