protected static function addElementToFilteredArray($key, $value)
    {
        if (is_null(self::$filteringCallback)) {
            return ($value);
        }

        if (is_string(self::$filteringCallback) && function_exists(self::$filteringCallback)) {
            $callback = self::$filteringCallback;

            return $callback($key, $value);
        }

        return call_user_func(self::$filteringCallback, $key, $value);
    }
protected static function addElementToFilteredArray($key, $value)
    {
        if (is_null(self::$filteringCallback)) {
            return ($value);
        }

        if (is_string(self::$filteringCallback) && function_exists(self::$filteringCallback)) {
            $callback = self::$filteringCallback;

            return $callback($key, $value);
        }

        return call_user_func(self::$filteringCallback, $key, $value);
    }
protected static function addElementToFilteredArray ( $ key , $ value ) { if ( is_null ( self :: $ filteringCallback ) ) { return ( $ value ) ; } if ( is_string ( self :: $ filteringCallback ) && function_exists ( self :: $ filteringCallback ) ) { $ callback = self :: $ filteringCallback ; return $ callback ( $ key , $ value ) ; } return call_user_func ( self :: $ filteringCallback , $ key , $ value ) ; }
Invoke the callback to check if the current element should be
added to the resultant filtered array.

@since 3.0.0

@param string $key
@param mixed $value

@return bool
Invoke the callback to check if the current element should be added to the resultant filtered array .